Shreyas94 commited on
Commit
dfdc926
1 Parent(s): bea305d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -73,12 +73,14 @@ def summarize_news(query, num_results=3):
73
  # Setting up Gradio interface
74
  iface = gr.Interface(
75
  fn=summarize_news,
76
- inputs=[gr.Textbox(label="Query"), gr.Slider(minimum=1, maximum=10, default=3, label="Number of Results")],
 
 
 
77
  outputs="textbox",
78
  title="News Summarizer",
79
  description="Enter a query to get a consolidated summary of the top news articles."
80
  )
81
 
82
  if __name__ == "__main__":
83
- logging.debug("Launching Gradio interface...")
84
- iface.launch()
 
73
  # Setting up Gradio interface
74
  iface = gr.Interface(
75
  fn=summarize_news,
76
+ inputs=[
77
+ gr.Textbox(label="Query"),
78
+ gr.Slider(minimum=1, maximum=10, value=3, label="Number of Results")
79
+ ],
80
  outputs="textbox",
81
  title="News Summarizer",
82
  description="Enter a query to get a consolidated summary of the top news articles."
83
  )
84
 
85
  if __name__ == "__main__":
86
+ iface.launch()