Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -154,8 +154,9 @@ def main():
|
|
154 |
st.header("Chat Bot PDFs :books:")
|
155 |
user_question1 = st.text_input("Ask a question about your documents:")
|
156 |
user_question2=sentences_f(sentence=user_question1,df2=df2)
|
|
|
157 |
translator = GoogleTranslator(source='persian', target='english')
|
158 |
-
user_question = translator.translate(
|
159 |
if st.button("Answer"):
|
160 |
with st.spinner("Answering"):
|
161 |
handle_userinput(user_question)
|
|
|
154 |
st.header("Chat Bot PDFs :books:")
|
155 |
user_question1 = st.text_input("Ask a question about your documents:")
|
156 |
user_question2=sentences_f(sentence=user_question1,df2=df2)
|
157 |
+
st.write(user_question2)
|
158 |
translator = GoogleTranslator(source='persian', target='english')
|
159 |
+
user_question = translator.translate(user_question1)
|
160 |
if st.button("Answer"):
|
161 |
with st.spinner("Answering"):
|
162 |
handle_userinput(user_question)
|