Spaces:
Sleeping
Sleeping
EbubeJohnEnyi
commited on
Commit
•
802898a
1
Parent(s):
c2e4fa7
Update app.py
Browse files
app.py
CHANGED
@@ -59,11 +59,10 @@ def find_question_and_answer(json_file, question):
|
|
59 |
return selected_response
|
60 |
|
61 |
if __name__ == '__main__':
|
62 |
-
|
63 |
# while True:
|
64 |
-
user_input = st.text_area("Enter your question
|
65 |
-
|
66 |
-
|
67 |
response = find_question_and_answer(json_file_path, user_input)
|
68 |
st.write(response)
|
69 |
|
@@ -76,6 +75,7 @@ if __name__ == '__main__':
|
|
76 |
|
77 |
|
78 |
|
|
|
79 |
# dataset_path = 'EbubeJohnEnyi/Q_and_A'
|
80 |
# import streamlit as st
|
81 |
# from transformers import pipeline
|
|
|
59 |
return selected_response
|
60 |
|
61 |
if __name__ == '__main__':
|
|
|
62 |
# while True:
|
63 |
+
user_input = st.text_area("Enter your question:")
|
64 |
+
# if user_input.lower() == 'exit':
|
65 |
+
# break
|
66 |
response = find_question_and_answer(json_file_path, user_input)
|
67 |
st.write(response)
|
68 |
|
|
|
75 |
|
76 |
|
77 |
|
78 |
+
|
79 |
# dataset_path = 'EbubeJohnEnyi/Q_and_A'
|
80 |
# import streamlit as st
|
81 |
# from transformers import pipeline
|