Update app.py
Browse files
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(
|
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])
|