Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -98,10 +98,9 @@ def main():
|
|
98 |
user_question = st.text_input("Ask a question about your documents:")
|
99 |
translator = GoogleTranslator(source='persian', target='english')
|
100 |
user_question = translator.translate(user_question)
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
handle_userinput(user_question)
|
105 |
|
106 |
|
107 |
with st.sidebar:
|
|
|
98 |
user_question = st.text_input("Ask a question about your documents:")
|
99 |
translator = GoogleTranslator(source='persian', target='english')
|
100 |
user_question = translator.translate(user_question)
|
101 |
+
if st.button("Answer"):
|
102 |
+
with st.spinner("Answering"):
|
103 |
+
handle_userinput(user_question)
|
|
|
104 |
|
105 |
|
106 |
with st.sidebar:
|