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