eagle0504 commited on
Commit
af1aa37
1 Parent(s): 4cc589f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -205,7 +205,8 @@ st.sidebar.markdown(
205
  This app guides you through YSA's website, utilizing a RAG-ready Q&A dataset [here](https://huggingface.co/datasets/eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted) for chatbot assistance. 🤖 Enter a question, and it finds similar ones in the database, offering answers with a distance score to gauge relevance—the lower the score, the closer the match. 🎯 For better accuracy and to reduce errors, user feedback helps refine the database. ✨
206
 
207
  """)
208
- special_threshold = st.sidebar.slider('Choose a distance threshold (generally we advise 0.2 to 0.3)?', min_value=0, max_value=1, step=0.05, value=0.2) # 0.3
 
209
  clear_button = st.sidebar.button("Clear Conversation", key="clear")
210
 
211
  if clear_button:
 
205
  This app guides you through YSA's website, utilizing a RAG-ready Q&A dataset [here](https://huggingface.co/datasets/eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted) for chatbot assistance. 🤖 Enter a question, and it finds similar ones in the database, offering answers with a distance score to gauge relevance—the lower the score, the closer the match. 🎯 For better accuracy and to reduce errors, user feedback helps refine the database. ✨
206
 
207
  """)
208
+ st.sidebar.success("Please enter a distance threshold (we advise to set it around 0.2).")
209
+ special_threshold = st.number_input("Insert a number", value=0.2, placeholder="Type a number...") # 0.3
210
  clear_button = st.sidebar.button("Clear Conversation", key="clear")
211
 
212
  if clear_button: