Skip to content

Commit

Permalink
Merge pull request xtekky#641 from 00randomize00/main
Browse files Browse the repository at this point in the history
Rollback to xtekky#241 when handling special character
  • Loading branch information
xtekky authored Jun 5, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 97794bb + 70df869 commit 3c5eccb
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
@@ -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('utf-8')
escaped = answer.encode('utf-8').decode('unicode-escape')
# Display answer
st.caption("Answer :")
st.markdown(escaped)

0 comments on commit 3c5eccb

Please sign in to comment.