Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +2 -2
Gradio_UI.py
CHANGED
|
@@ -12,8 +12,8 @@ class GradioUI:
|
|
| 12 |
location = user_input.strip()
|
| 13 |
if not location:
|
| 14 |
return "Please mention a location."
|
| 15 |
-
time_result =
|
| 16 |
-
currency_result =
|
| 17 |
print(f"Time result: {time_result}")
|
| 18 |
print(f"Currency result: {currency_result}")
|
| 19 |
if "not found" in time_result.lower() or "not found" in currency_result.lower() or "error" in time_result.lower() or "error" in currency_result.lower():
|
|
|
|
| 12 |
location = user_input.strip()
|
| 13 |
if not location:
|
| 14 |
return "Please mention a location."
|
| 15 |
+
time_result = self.time_tool(location)
|
| 16 |
+
currency_result = self.currency_tool(location)
|
| 17 |
print(f"Time result: {time_result}")
|
| 18 |
print(f"Currency result: {currency_result}")
|
| 19 |
if "not found" in time_result.lower() or "not found" in currency_result.lower() or "error" in time_result.lower() or "error" in currency_result.lower():
|