Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ import pytz
|
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
import os
|
| 8 |
-
from huggingface_hub import login
|
| 9 |
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
|
@@ -35,7 +34,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 35 |
except Exception as e:
|
| 36 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 37 |
|
| 38 |
-
login(os.getenv("HF_TOKEN"))
|
| 39 |
|
| 40 |
final_answer = FinalAnswerTool()
|
| 41 |
|
|
@@ -47,6 +45,7 @@ max_tokens=2096,
|
|
| 47 |
temperature=0.5,
|
| 48 |
model_id='Qwen/Qwen2.5-Coder-7B-Instruct',# it is possible that this model may be overloaded
|
| 49 |
custom_role_conversions=None,
|
|
|
|
| 50 |
)
|
| 51 |
|
| 52 |
|
|
|
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
import os
|
|
|
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
|
|
|
| 34 |
except Exception as e:
|
| 35 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 36 |
|
|
|
|
| 37 |
|
| 38 |
final_answer = FinalAnswerTool()
|
| 39 |
|
|
|
|
| 45 |
temperature=0.5,
|
| 46 |
model_id='Qwen/Qwen2.5-Coder-7B-Instruct',# it is possible that this model may be overloaded
|
| 47 |
custom_role_conversions=None,
|
| 48 |
+
token=os.getenv("HF_TOKEN")
|
| 49 |
)
|
| 50 |
|
| 51 |
|