Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from gradio_client import Client
|
|
| 6 |
|
| 7 |
API_TOKEN = st.secrets['HF_TOKEN']
|
| 8 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 9 |
-
headers = {"Authorization": "Bearer {str(API_TOKEN)}"}
|
| 10 |
|
| 11 |
def query(payload):
|
| 12 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
|
| 6 |
|
| 7 |
API_TOKEN = st.secrets['HF_TOKEN']
|
| 8 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 9 |
+
headers = {"Authorization": f"Bearer {str(API_TOKEN)}"}
|
| 10 |
|
| 11 |
def query(payload):
|
| 12 |
response = requests.post(API_URL, headers=headers, json=payload)
|