Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def summarize_news(query, num_results=3):
|
|
18 |
|
19 |
# Search for news articles
|
20 |
logging.debug("Searching for news articles...")
|
21 |
-
search_results = search(query, num_results=num_results)
|
22 |
articles = []
|
23 |
|
24 |
logging.debug(f"Search results: {search_results}")
|
@@ -88,4 +88,4 @@ iface = gr.Interface(
|
|
88 |
|
89 |
if __name__ == "__main__":
|
90 |
logging.debug("Launching Gradio interface...")
|
91 |
-
iface.launch()
|
|
|
18 |
|
19 |
# Search for news articles
|
20 |
logging.debug("Searching for news articles...")
|
21 |
+
search_results = list(search(query, num_results=num_results))
|
22 |
articles = []
|
23 |
|
24 |
logging.debug(f"Search results: {search_results}")
|
|
|
88 |
|
89 |
if __name__ == "__main__":
|
90 |
logging.debug("Launching Gradio interface...")
|
91 |
+
iface.launch()
|