DTStudios commited on
Commit
c9ac72c
·
verified ·
1 Parent(s): 5d9126f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -18,7 +18,10 @@ def get_weather(city: str) -> str:
18
  Returns:
19
  str: Weather description for the city.
20
  """
21
- # Function body goes here...
 
 
 
22
 
23
  api_key = api_key = os.environ.get("OPENWEATHER_API_KEY") # Secure key from Hugging Face Secrets
24
  if not api_key:
@@ -46,8 +49,6 @@ agent = CodeAgent(
46
  )
47
  demo = GradioUI(
48
  agent=get_weather,
49
- inputs="text",
50
- output="text",
51
  title="DTS Weather Tool",
52
  description="Enter a city to get current weather"
53
  )
 
18
  Returns:
19
  str: Weather description for the city.
20
  """
21
+ final_answer = FinalAnswerTool()
22
+
23
+ # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
24
+ # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
25
 
26
  api_key = api_key = os.environ.get("OPENWEATHER_API_KEY") # Secure key from Hugging Face Secrets
27
  if not api_key:
 
49
  )
50
  demo = GradioUI(
51
  agent=get_weather,
 
 
52
  title="DTS Weather Tool",
53
  description="Enter a city to get current weather"
54
  )