Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,8 @@ import requests
|
|
| 5 |
|
| 6 |
# Usaremos un modelo p煤blico accesible sin restricciones complejas
|
| 7 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.1"
|
| 8 |
-
HEADERS = {"Authorization": "Bearer
|
|
|
|
| 9 |
|
| 10 |
# Funci贸n para enviar mensaje a la API de Hugging Face
|
| 11 |
def chat_with_smart(message, history):
|
|
|
|
| 5 |
|
| 6 |
# Usaremos un modelo p煤blico accesible sin restricciones complejas
|
| 7 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.1"
|
| 8 |
+
HEADERS = {"Authorization": "Bearer hf_yourrealapitoken"}
|
| 9 |
+
|
| 10 |
|
| 11 |
# Funci贸n para enviar mensaje a la API de Hugging Face
|
| 12 |
def chat_with_smart(message, history):
|