Spaces:
Sleeping
Sleeping
Fixing app
Browse files
app.py
CHANGED
|
@@ -98,4 +98,4 @@ async def extract_text_pdf(id_doc: str):
|
|
| 98 |
@app.get("/extract/random/{keyword}/{limit}")
|
| 99 |
async def extract_random_pdf(keyword: str, limit: int):
|
| 100 |
pubs = await get_articles(keyword, limit)
|
| 101 |
-
return await extract_text_pdf(random.choice(pubs.keys()))
|
|
|
|
| 98 |
@app.get("/extract/random/{keyword}/{limit}")
|
| 99 |
async def extract_random_pdf(keyword: str, limit: int):
|
| 100 |
pubs = await get_articles(keyword, limit)
|
| 101 |
+
return await extract_text_pdf(random.choice(list(pubs.keys())))
|