Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,9 @@ import yaml
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
@tool
|
| 11 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
@@ -47,6 +50,7 @@ model = HfApiModel(
|
|
| 47 |
temperature=0.5,
|
| 48 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 49 |
custom_role_conversions=None,
|
|
|
|
| 50 |
)
|
| 51 |
|
| 52 |
|
|
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
+
import os
|
| 10 |
+
|
| 11 |
+
HF_API_KEY = os.environ.get("HF_API_KEY")
|
| 12 |
|
| 13 |
@tool
|
| 14 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 50 |
temperature=0.5,
|
| 51 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 52 |
custom_role_conversions=None,
|
| 53 |
+
hf_api_key=HF_API_KEY
|
| 54 |
)
|
| 55 |
|
| 56 |
|