Shreyas94 commited on
Commit
787b984
·
verified ·
1 Parent(s): 9a808f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,8 +80,8 @@ def format_output(articles):
80
 
81
  iface = gr.Interface(
82
  fn=summarize_news,
83
- inputs=[gr.inputs.Textbox(label="Query"), gr.inputs.Slider(minimum=1, maximum=10, default=3, label="Number of Results")],
84
- outputs=gr.outputs.Textbox(),
85
  title="News Summarizer",
86
  description="Enter a query to get summarized versions of the top news articles."
87
  )
 
80
 
81
  iface = gr.Interface(
82
  fn=summarize_news,
83
+ inputs=["textbox", "slider"],
84
+ outputs="textbox",
85
  title="News Summarizer",
86
  description="Enter a query to get summarized versions of the top news articles."
87
  )