XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

need escape unicode answer to support Chinese

ec33603b
ethanx40 <93695126+ethanx40@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified gui/streamlit_app.py +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 = """