wizofavalon commited on
Commit
88707b4
·
verified ·
1 Parent(s): eb0c64f

added new tool

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def get_temperature(city:str)-> str: #it's import to specify the return type
21
  if response.status_code == 200:
22
  temperature = response.text.strip()
23
  print(f"The current temperature in {city} is {temperature}")
24
- return f"The current temperature in {city} is {temperature}
25
  else:
26
  print(f"Error fetching weather for {city}: HTTP {response.status_code}")
27
  return f"Error fetching weather for {city}: HTTP {response.status_code}"
 
21
  if response.status_code == 200:
22
  temperature = response.text.strip()
23
  print(f"The current temperature in {city} is {temperature}")
24
+ return f"The current temperature in {city} is {temperature}"
25
  else:
26
  print(f"Error fetching weather for {city}: HTTP {response.status_code}")
27
  return f"Error fetching weather for {city}: HTTP {response.status_code}"