Spaces:
Runtime error
Runtime error
ner
Browse files
app.py
CHANGED
|
@@ -2,9 +2,9 @@ import os
|
|
| 2 |
import requests
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
-
API_URL = "https://huggingface.co/abdelac/Mistral_Test"
|
| 6 |
HEADERS = {
|
| 7 |
-
"Authorization": f"Bearer {os.getenv('
|
| 8 |
}
|
| 9 |
|
| 10 |
def query(prompt, max_new_tokens=256, temperature=0.7):
|
|
|
|
| 2 |
import requests
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
+
API_URL = "https://router.huggingface.co/models/abdelac/Mistral_Test"
|
| 6 |
HEADERS = {
|
| 7 |
+
"Authorization": f"Bearer {os.getenv('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')}"
|
| 8 |
}
|
| 9 |
|
| 10 |
def query(prompt, max_new_tokens=256, temperature=0.7):
|