Spaces:
Sleeping
Sleeping
get historical data by query
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def historical_event_explorer(query :str, year: int = None)-> str: #it's import
|
|
36 |
if year is not None and year in historical_data:
|
37 |
return f"In {year}, {historical_data[year]}"
|
38 |
elif query in historical_data:
|
39 |
-
return historical_data
|
40 |
else:
|
41 |
return "No historical events found for the given query."
|
42 |
|
|
|
36 |
if year is not None and year in historical_data:
|
37 |
return f"In {year}, {historical_data[year]}"
|
38 |
elif query in historical_data:
|
39 |
+
return historical_data[query]
|
40 |
else:
|
41 |
return "No historical events found for the given query."
|
42 |
|