Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,6 +96,8 @@ def main():
|
|
96 |
|
97 |
st.header("Chat Bot PDFs :books:")
|
98 |
user_question = st.text_input("Ask a question about your documents:")
|
|
|
|
|
99 |
|
100 |
|
101 |
if user_question:
|
|
|
96 |
|
97 |
st.header("Chat Bot PDFs :books:")
|
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:
|