Aye10032
commited on
Commit
·
8351bde
1
Parent(s):
96f6c87
fix
Browse files
pages/AcademicTranslate.py
CHANGED
@@ -73,7 +73,7 @@ if prompt := st.chat_input():
|
|
73 |
logger.info(f'[translate]: {prompt}')
|
74 |
|
75 |
chat_container.chat_message("human").write(prompt)
|
76 |
-
st.session_state.
|
77 |
|
78 |
response = ac_translate(prompt, st.session_state.get('is_en2zh'))
|
79 |
translate_result = chat_container.chat_message("ai").write_stream(response)
|
|
|
73 |
logger.info(f'[translate]: {prompt}')
|
74 |
|
75 |
chat_container.chat_message("human").write(prompt)
|
76 |
+
st.session_state.ac_translate_history.append({'role': 'user', 'content': prompt})
|
77 |
|
78 |
response = ac_translate(prompt, st.session_state.get('is_en2zh'))
|
79 |
translate_result = chat_container.chat_message("ai").write_stream(response)
|