Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|