saritha5 commited on
Commit
8e0e05d
·
1 Parent(s): c4147c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- else:
72
- prompt = st.text_input("What do you want to search for? : ")
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"):