ali121300 commited on
Commit
7e93132
1 Parent(s): b4c87ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -144,7 +144,7 @@ def main():
144
  #st.markdown("This bot tries to answer questions about multiple PDFs. Let the processing of the PDF finish before adding your question. 🙏🏾")
145
 
146
  st.write(css, unsafe_allow_html=True)
147
- df2=upload_xls()
148
 
149
 
150
  if "conversation" not in st.session_state:
@@ -154,10 +154,10 @@ def main():
154
 
155
 
156
  st.header("Chat Bot PDFs :books:")
157
- user_question1 = st.text_input("Ask a question about your documents:")
158
- user_question2=sentences_f(sentence=user_question1,df2=df2)
159
- translator = GoogleTranslator(source='persian', target='english')
160
- user_question = translator.translate(user_question2)
161
  if st.button("Answer"):
162
  with st.spinner("Answering"):
163
  handle_userinput(user_question)
 
144
  #st.markdown("This bot tries to answer questions about multiple PDFs. Let the processing of the PDF finish before adding your question. 🙏🏾")
145
 
146
  st.write(css, unsafe_allow_html=True)
147
+ #df2=upload_xls()
148
 
149
 
150
  if "conversation" not in st.session_state:
 
154
 
155
 
156
  st.header("Chat Bot PDFs :books:")
157
+ user_question = st.text_input("Ask a question about your documents:")
158
+ #user_question2=sentences_f(sentence=user_question1,df2=df2)
159
+ #translator = GoogleTranslator(source='persian', target='english')
160
+ #user_question = translator.translate(user_question2)
161
  if st.button("Answer"):
162
  with st.spinner("Answering"):
163
  handle_userinput(user_question)