Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,12 @@ import tempfile
|
|
| 8 |
import numpy as np
|
| 9 |
|
| 10 |
# Your Hugging Face API Token
|
| 11 |
-
HF_TOKEN = os.getenv("
|
| 12 |
|
| 13 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3"
|
| 14 |
|
| 15 |
headers = {
|
| 16 |
-
"Authorization": f"Bearer {
|
| 17 |
}
|
| 18 |
|
| 19 |
def query_mistral(question):
|
|
|
|
| 8 |
import numpy as np
|
| 9 |
|
| 10 |
# Your Hugging Face API Token
|
| 11 |
+
HF_TOKEN = os.getenv("HF_Token")
|
| 12 |
|
| 13 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3"
|
| 14 |
|
| 15 |
headers = {
|
| 16 |
+
"Authorization": f"Bearer {HF_Token}"
|
| 17 |
}
|
| 18 |
|
| 19 |
def query_mistral(question):
|