Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=[
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 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()
|
|
|