Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -376,7 +376,7 @@ def generate_map(location_names):
|
|
376 |
api_key = os.environ['GOOGLEMAPS_API_KEY']
|
377 |
gmaps = GoogleMapsClient(key=api_key)
|
378 |
|
379 |
-
m = folium.Map(location=[33.5175, -86.809444], zoom_start=
|
380 |
|
381 |
for location_name in all_addresses:
|
382 |
geocode_result = gmaps.geocode(location_name)
|
@@ -713,10 +713,10 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
713 |
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output],api_name="map_finder")
|
714 |
|
715 |
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
|
721 |
with gr.Column():
|
722 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|
|
|
376 |
api_key = os.environ['GOOGLEMAPS_API_KEY']
|
377 |
gmaps = GoogleMapsClient(key=api_key)
|
378 |
|
379 |
+
m = folium.Map(location=[33.5175, -86.809444], zoom_start=20)
|
380 |
|
381 |
for location_name in all_addresses:
|
382 |
geocode_result = gmaps.geocode(location_name)
|
|
|
713 |
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output],api_name="map_finder")
|
714 |
|
715 |
|
716 |
+
with gr.Column():
|
717 |
+
weather_output = gr.HTML(value=fetch_local_weather())
|
718 |
+
news_output = gr.HTML(value=fetch_local_news())
|
719 |
+
news_output = gr.HTML(value=fetch_local_events())
|
720 |
|
721 |
with gr.Column():
|
722 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|