kensvin commited on
Commit
2577f1f
1 Parent(s): a33de26

update to cpu

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -37,6 +37,7 @@ def scrape(product_id, max_reviews=LIMIT):
37
  page = 1
38
  has_next = True
39
 
 
40
  while has_next and len(all_reviews) <= max_reviews:
41
  response = request_product_review(product_id, page=page)
42
  data = response.json()["data"]["productrevGetProductReviewList"]
 
37
  page = 1
38
  has_next = True
39
 
40
+ logger.info("Extracting product reviews...")
41
  while has_next and len(all_reviews) <= max_reviews:
42
  response = request_product_review(product_id, page=page)
43
  data = response.json()["data"]["productrevGetProductReviewList"]
requirements.txt CHANGED
@@ -6,7 +6,7 @@ langchain-community
6
  openai
7
  python-dotenv
8
  chromadb
9
- faiss-gpu
10
  pandas
11
  emoji
12
  gradio
 
6
  openai
7
  python-dotenv
8
  chromadb
9
+ faiss-cpu
10
  pandas
11
  emoji
12
  gradio