Skip to content

Commit

Permalink
Merge pull request xtekky#532 from with1874/main
Browse files Browse the repository at this point in the history
Fix Chinese garbled characters
  • Loading branch information
xtekky authored May 28, 2023
2 parents 1c227b8 + a503520 commit ebc10fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_answer(question: str) -> str:
question_text_area = st.text_area('🤖 Ask Any Question :', placeholder='Explain quantum computing in 50 words')
if st.button('🧠 Think'):
answer = get_answer(question_text_area)
escaped = answer.encode('utf-8').decode('unicode-escape')
escaped = answer.encode('utf-8').decode('utf-8')
# Display answer
st.caption("Answer :")
st.markdown(escaped)
Expand Down

0 comments on commit ebc10fa

Please sign in to comment.