Spaces:
Sleeping
Sleeping
update to cpu
Browse files- app.py +1 -0
- 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-
|
10 |
pandas
|
11 |
emoji
|
12 |
gradio
|
|
|
6 |
openai
|
7 |
python-dotenv
|
8 |
chromadb
|
9 |
+
faiss-cpu
|
10 |
pandas
|
11 |
emoji
|
12 |
gradio
|