Spaces:
Runtime error
Runtime error
Suchinthana
commited on
Commit
Β·
b565813
1
Parent(s):
2783581
Update app.py
Browse files
app.py
CHANGED
@@ -268,7 +268,9 @@ def handle_query(query):
|
|
268 |
#return map_image, satellite_image, empty_map_image, mask_image, response['output']['feature_representation']['properties']['description']
|
269 |
|
270 |
def update_query(selected_query):
|
271 |
-
|
|
|
|
|
272 |
|
273 |
query_options = [
|
274 |
"Area covering south asian subcontinent",
|
|
|
268 |
#return map_image, satellite_image, empty_map_image, mask_image, response['output']['feature_representation']['properties']['description']
|
269 |
|
270 |
def update_query(selected_query):
|
271 |
+
if isinstance(selected_query, str):
|
272 |
+
return [selected_query]
|
273 |
+
return [""] # fallback to avoid None/bool return
|
274 |
|
275 |
query_options = [
|
276 |
"Area covering south asian subcontinent",
|