Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -2177,7 +2177,7 @@ def fetch_local_events():
|
|
2177 |
api_key = os.environ['SERP_API']
|
2178 |
url = f'https://serpapi.com/search.json?engine=google_events&q=Events+in+Birmingham&hl=en&gl=us&api_key={api_key}'
|
2179 |
response = requests.get(url)
|
2180 |
-
if response.status_code == 200
|
2181 |
events_results = response.json().get("events_results", [])
|
2182 |
events_html = """
|
2183 |
<h2 style="font-family: 'Georgia', serif; color: #ff0000; background-color: #f8f8f8; padding: 10px; border-radius: 10px;">Local Events</h2>
|
|
|
2177 |
api_key = os.environ['SERP_API']
|
2178 |
url = f'https://serpapi.com/search.json?engine=google_events&q=Events+in+Birmingham&hl=en&gl=us&api_key={api_key}'
|
2179 |
response = requests.get(url)
|
2180 |
+
if response.status_code == 200:
|
2181 |
events_results = response.json().get("events_results", [])
|
2182 |
events_html = """
|
2183 |
<h2 style="font-family: 'Georgia', serif; color: #ff0000; background-color: #f8f8f8; padding: 10px; border-radius: 10px;">Local Events</h2>
|