Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import requests
|
|
| 3 |
|
| 4 |
# This uses a free Hugging Face API model (no credit card needed)
|
| 5 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
|
| 6 |
-
HEADERS = {"Authorization": "
|
| 7 |
|
| 8 |
def chat_with_ai(prompt, history):
|
| 9 |
if not prompt.strip():
|
|
|
|
| 3 |
|
| 4 |
# This uses a free Hugging Face API model (no credit card needed)
|
| 5 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
|
| 6 |
+
HEADERS = {"Authorization": "Bearer YOUR_HF_TOKEN"} # You'll get this in step 2 below
|
| 7 |
|
| 8 |
def chat_with_ai(prompt, history):
|
| 9 |
if not prompt.strip():
|