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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()