sharsh02 commited on
Commit
0a83f76
1 Parent(s): f490425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -370,7 +370,7 @@ async def get_google_news(queries, max_results=3):
370
  results=[] ## checking
371
  task = []
372
 
373
- async def duckduckgo_search(query):
374
  query = query + "+blogs"
375
  results = DDGS().news(query, max_results, timelimit="w")
376
  news = [{f"[{doc['title']}]({doc['url']})": doc['body'] for doc in results}]
@@ -392,7 +392,7 @@ async def get_google_news(queries, max_results=3):
392
  async def get_duckai_news(queries):
393
 
394
  task = []
395
- results = await get_google_news(queries,3)
396
  prompt = """#Instruction:
397
  Summarise the impactful points of the news and mention the news link and date of publish at the end if available
398
  #Format:
 
370
  results=[] ## checking
371
  task = []
372
 
373
+ async def duckduckgo_search(query, max_results):
374
  query = query + "+blogs"
375
  results = DDGS().news(query, max_results, timelimit="w")
376
  news = [{f"[{doc['title']}]({doc['url']})": doc['body'] for doc in results}]
 
392
  async def get_duckai_news(queries):
393
 
394
  task = []
395
+ results = await get_google_news(queries, 3)
396
  prompt = """#Instruction:
397
  Summarise the impactful points of the news and mention the news link and date of publish at the end if available
398
  #Format: