zavavan commited on
Commit
74ac7b1
·
verified ·
1 Parent(s): f031861

Update app.py

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