ArceusInception commited on
Commit
9d3c1c5
·
verified ·
1 Parent(s): bd817ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- # Define 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="WeatherAssistantApp",
44
- description="Enter a city name to get a lively description of the current weather, temperature, and humidity."
45
  )
46
 
47
- # Launch the interface
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()