adithyagv commited on
Commit
8c13131
·
verified ·
1 Parent(s): 990211e

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. 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 = get_current_time_in_location(location)
16
- currency_result = get_currency_from_location(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():
 
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():