Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -65,11 +65,11 @@ def search_reviews(df, product_description, n=3, pprint=True):
|
|
65 |
print(results[idx])
|
66 |
print()
|
67 |
return results,product
|
68 |
-
|
69 |
if prompt is None:
|
70 |
st.write("Please enter any dish to get reviews")
|
71 |
-
|
72 |
-
|
73 |
top_n = st.number_input("How many results do you want to see? : ", min_value = 1)
|
74 |
results,product = search_reviews(df, prompt, top_n)
|
75 |
if st.button("Search Reviews"):
|
|
|
65 |
print(results[idx])
|
66 |
print()
|
67 |
return results,product
|
68 |
+
prompt = st.text_input("What do you want to search for? : ")
|
69 |
if prompt is None:
|
70 |
st.write("Please enter any dish to get reviews")
|
71 |
+
|
72 |
+
|
73 |
top_n = st.number_input("How many results do you want to see? : ", min_value = 1)
|
74 |
results,product = search_reviews(df, prompt, top_n)
|
75 |
if st.button("Search Reviews"):
|