himmat12 commited on
Commit
3bcff25
·
verified ·
1 Parent(s): 82b6f51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -9,9 +9,12 @@ from Gradio_UI import GradioUI
9
 
10
  import requests
11
  import os
12
- from dotenv import load_dotenv
 
 
 
 
13
 
14
- load_dotenv()
15
 
16
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
17
  @tool
@@ -25,7 +28,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
25
  return "What magic will you build ?"
26
 
27
  @tool
28
- def get_weather(location: str):
29
  """A tool that fetches the current weather data of a specified location.
30
  Args:
31
  location: A string representing a valid location name (e.g., 'Leicester/United Kingdom').
 
9
 
10
  import requests
11
  import os
12
+ # from dotenv import load_dotenv
13
+
14
+ # load_dotenv()
15
+
16
+ from typing import Dict, Any
17
 
 
18
 
19
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
20
  @tool
 
28
  return "What magic will you build ?"
29
 
30
  @tool
31
+ def get_weather(location: str) -> Dict[str, Any]:
32
  """A tool that fetches the current weather data of a specified location.
33
  Args:
34
  location: A string representing a valid location name (e.g., 'Leicester/United Kingdom').