Spaces:
Running
Running
Update app.py
Browse files
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:
|