ali121300 commited on
Commit
446feac
1 Parent(s): a392478

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- if user_question:
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: