Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def scrape_drug_reviews_tool(drug_name: str, max_pages: int = 3) -> dict :
|
|
| 26 |
Output: a dictionary url:review mapping the url of a review to the text of the review
|
| 27 |
"""
|
| 28 |
try:
|
| 29 |
-
df =
|
| 30 |
return df.to_dict(orient="records")
|
| 31 |
except Exception as e:
|
| 32 |
return {"error": str(e)}
|
|
|
|
| 26 |
Output: a dictionary url:review mapping the url of a review to the text of the review
|
| 27 |
"""
|
| 28 |
try:
|
| 29 |
+
df = scrape_drugs_com_reviews_requests(drug_name, max_pages)
|
| 30 |
return df.to_dict(orient="records")
|
| 31 |
except Exception as e:
|
| 32 |
return {"error": str(e)}
|