Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,7 @@ from tools.final_answer import FinalAnswerTool
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
|
| 11 |
-
headers = {
|
| 12 |
-
"Authorization": f"Bearer {os.environ['HF_TOKEN']}",
|
| 13 |
-
}
|
| 14 |
|
| 15 |
@tool
|
| 16 |
def extract_knowledge_graph(text: str) -> str:
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
|
| 11 |
+
headers = {"Authorization": "Bearer HF_TOKEN"}
|
|
|
|
|
|
|
| 12 |
|
| 13 |
@tool
|
| 14 |
def extract_knowledge_graph(text: str) -> str:
|