Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,16 @@ import requests
|
|
4 |
import pytz
|
5 |
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:
|
12 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
4 |
import pytz
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
+
from huggingface_hub import InferenceClient
|
8 |
|
9 |
from Gradio_UI import GradioUI
|
10 |
+
import os
|
11 |
|
12 |
+
HF_API_KEY = os.getenv("HF_API_KEY")
|
13 |
+
client = InferenceClient(
|
14 |
+
model="Qwen/Qwen2.5-Coder-32B-Instruct",
|
15 |
+
token=HF_API_KEY
|
16 |
+
)
|
17 |
@tool
|
18 |
def get_current_time_in_timezone(timezone: str) -> str:
|
19 |
"""A tool that fetches the current local time in a specified timezone.
|