Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,14 +35,14 @@ def get_weather(city_name):
|
|
| 35 |
else:
|
| 36 |
return "Failed to retrieve data. Please check the city name and try again."
|
| 37 |
|
| 38 |
-
#
|
| 39 |
iface = gr.Interface(
|
| 40 |
fn=get_weather,
|
| 41 |
inputs=gr.Textbox(label="Enter City Name", placeholder="Type here..."),
|
| 42 |
outputs=gr.Textbox(label="Weather Update"),
|
| 43 |
-
title="
|
| 44 |
-
description="Enter a city name to get a lively description of the current weather, temperature, and humidity."
|
| 45 |
)
|
| 46 |
|
| 47 |
-
#
|
| 48 |
-
iface.launch()
|
|
|
|
| 35 |
else:
|
| 36 |
return "Failed to retrieve data. Please check the city name and try again."
|
| 37 |
|
| 38 |
+
# Defining Gradio interface
|
| 39 |
iface = gr.Interface(
|
| 40 |
fn=get_weather,
|
| 41 |
inputs=gr.Textbox(label="Enter City Name", placeholder="Type here..."),
|
| 42 |
outputs=gr.Textbox(label="Weather Update"),
|
| 43 |
+
title="Weather App with AI City Insights",
|
| 44 |
+
description="Enter a city name to get a lively description of the current weather, temperature, and humidity, plus an interesting fact about the city, all generated by AI."
|
| 45 |
)
|
| 46 |
|
| 47 |
+
# Launching the interface
|
| 48 |
+
iface.launch()
|