antfraia commited on
Commit
280d9c3
·
1 Parent(s): 1a3d149

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -38,13 +38,17 @@ def summarize_weather(city1, city2):
38
  else:
39
  return "Error fetching weather data for one or both cities."
40
 
 
 
 
41
  interface = gr.Interface(
42
  fn=summarize_weather,
43
  inputs=[
44
  gr.Textbox(placeholder="Enter City 1"),
45
  gr.Textbox(placeholder="Enter City 2")
46
  ],
47
- outputs="text"
 
48
  )
49
 
50
  if __name__ == "__main__":
 
38
  else:
39
  return "Error fetching weather data for one or both cities."
40
 
41
+ # Fetch the "dracula_revamped" theme from the Gradio Theme Gallery
42
+ theme = gr.Theme.from_hub("gradio/dracula_revamped")
43
+
44
  interface = gr.Interface(
45
  fn=summarize_weather,
46
  inputs=[
47
  gr.Textbox(placeholder="Enter City 1"),
48
  gr.Textbox(placeholder="Enter City 2")
49
  ],
50
+ outputs="text",
51
+ theme=theme
52
  )
53
 
54
  if __name__ == "__main__":