Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,7 @@ from Gradio_UI import GradioUI
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
def get_location(arg1:str, arg2:int)-> str:
|
| 13 |
-
"""Retrieves the users approximate location using there ip address."""
|
| 14 |
-
try:
|
| 15 |
response = requests.get("https://ipinfo.io.json")
|
| 16 |
data = response.json()
|
| 17 |
location_info = {
|
|
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
def get_location(arg1:str, arg2:int)-> str:
|
| 13 |
+
"""Retrieves the users approximate location using there ip address."""
|
|
|
|
| 14 |
response = requests.get("https://ipinfo.io.json")
|
| 15 |
data = response.json()
|
| 16 |
location_info = {
|