返回提交历史
Modified
gui/streamlit_app.py
+2
-1
XFEstudio/gpt4free
need escape unicode answer to support Chinese
ec33603b
代码差异
1 个文件
+2
-1
@@ -37,9 +37,10 @@ question_text_area = st.text_area(
37
37
'🤖 Ask Any Question :', placeholder='Explain quantum computing in 50 words')
38
38
if st.button('🧠 Think'):
39
39
answer = get_answer(question_text_area)
40
escaped = answer.encode('utf-8').decode('unicode-escape')
40
41
# Display answer
41
42
st.caption("Answer :")
42
st.markdown(answer)
43
st.markdown(escaped)
43
44
44
45
# Hide Streamlit footer
45
46
hide_streamlit_style = """