rande commited on
Commit
52cc43b
1 Parent(s): 6fe7da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -82,10 +82,8 @@ def main():
82
  # React to user input
83
  if prompt := st.chat_input("Magtanong ng lunas sa sakit"):
84
 
85
- doc = nlp(prompt)
86
-
87
  # Use the cached function to get the most similar tag
88
- returned_tag, returned_score = get_most_similar_tag(doc, patterns_df)
89
 
90
  st.success(returned_tag + str(returned_score))
91
  st.success(responses_df[responses_df['tag']==returned_tag]['response'][0])
 
82
  # React to user input
83
  if prompt := st.chat_input("Magtanong ng lunas sa sakit"):
84
 
 
 
85
  # Use the cached function to get the most similar tag
86
+ returned_tag, returned_score = get_most_similar_tag(prompt, patterns_df)
87
 
88
  st.success(returned_tag + str(returned_score))
89
  st.success(responses_df[responses_df['tag']==returned_tag]['response'][0])