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

XFEstudio/gpt4free

Fix Chinese garbled characters

a5035209
with1874 <1624402468@qq.com>
提交于

代码差异

1 个文件 +1 -1
Modified gui/streamlit_app.py +1 -1
@@ -38,7 +38,7 @@ st.header('GPT4free GUI')
38 38 question_text_area = st.text_area('🤖 Ask Any Question :', placeholder='Explain quantum computing in 50 words')
39 39 if st.button('🧠 Think'):
40 40 answer = get_answer(question_text_area)
41 escaped = answer.encode('utf-8').decode('unicode-escape')
41 escaped = answer.encode('utf-8').decode('utf-8')
42 42 # Display answer
43 43 st.caption("Answer :")
44 44 st.markdown(escaped)