venkat-srinivasan-nexusflow commited on
Commit
1c4f8f5
Β·
verified Β·
1 Parent(s): 11d051f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -521,7 +521,7 @@ class RavenDemo(gr.Blocks):
521
 
522
  current_time = datetime.now().strftime("%b %d, %Y %H:%M:%S")
523
  try:
524
- current_location = self.tools.get_current_location()
525
  except:
526
  current_location = "Current location not found."
527
 
@@ -556,7 +556,7 @@ class RavenDemo(gr.Blocks):
556
  relevant_places = list(relevant_places.keys())
557
 
558
  if not relevant_places:
559
- current_location = self.tools.get_current_location()
560
  relevant_places.append((current_location, current_location))
561
 
562
  return relevant_places
 
521
 
522
  current_time = datetime.now().strftime("%b %d, %Y %H:%M:%S")
523
  try:
524
+ current_location = self.tools.get_current_location()[0]
525
  except:
526
  current_location = "Current location not found."
527
 
 
556
  relevant_places = list(relevant_places.keys())
557
 
558
  if not relevant_places:
559
+ current_location = self.tools.get_current_location()[0]
560
  relevant_places.append((current_location, current_location))
561
 
562
  return relevant_places