Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,6 @@ def get_conversation_chain(vectorstore:FAISS) -> ConversationalRetrievalChain:
|
|
69 |
|
70 |
|
71 |
def handle_userinput(user_question:str):
|
72 |
-
import trs_en_to_fa
|
73 |
response = st.session_state.conversation({"question": user_question})
|
74 |
st.session_state.chat_history = response["chat_history"]
|
75 |
|
@@ -78,8 +77,8 @@ def handle_userinput(user_question:str):
|
|
78 |
st.write("سوال کاربر: " + message.content)
|
79 |
else:
|
80 |
st.write("پاسخ ربات: " + message.content)
|
81 |
-
|
82 |
-
txt_fa=trs_en_to_fa(text=
|
83 |
st.write(txt_fa)
|
84 |
|
85 |
#############################################################################################################
|
|
|
69 |
|
70 |
|
71 |
def handle_userinput(user_question:str):
|
|
|
72 |
response = st.session_state.conversation({"question": user_question})
|
73 |
st.session_state.chat_history = response["chat_history"]
|
74 |
|
|
|
77 |
st.write("سوال کاربر: " + message.content)
|
78 |
else:
|
79 |
st.write("پاسخ ربات: " + message.content)
|
80 |
+
text1=message.content
|
81 |
+
txt_fa=trs_en_to_fa(text=text1)
|
82 |
st.write(txt_fa)
|
83 |
|
84 |
#############################################################################################################
|