Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,9 +66,9 @@ def handle_userinput(user_question:str):
|
|
66 |
|
67 |
for i, message in enumerate(st.session_state.chat_history):
|
68 |
if i % 2 == 0:
|
69 |
-
st.write("سوال کاربر: " + message.content)
|
70 |
else:
|
71 |
-
st.write("پاسخ ربات: "
|
72 |
text1=message.content
|
73 |
translator = GoogleTranslator(source='english', target='persian')
|
74 |
result = translator.translate(text1)
|
|
|
66 |
|
67 |
for i, message in enumerate(st.session_state.chat_history):
|
68 |
if i % 2 == 0:
|
69 |
+
#st.write("سوال کاربر: " + message.content)
|
70 |
else:
|
71 |
+
st.write("پاسخ ربات: ")
|
72 |
text1=message.content
|
73 |
translator = GoogleTranslator(source='english', target='persian')
|
74 |
result = translator.translate(text1)
|