diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-30 13:13:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-30 13:13:56 +0200 |
commit | ef9127d876914813868536597926e2a7dd37bbf7 (patch) | |
tree | 2dc9e9cf81b78af88f7279146578856ec8af0768 /gui/streamlit_chat_app.py | |
parent | fixed: bug fix on GUI (diff) | |
parent | Merge pull request #304 from taiyi747/main (diff) | |
download | gpt4free-ef9127d876914813868536597926e2a7dd37bbf7.tar gpt4free-ef9127d876914813868536597926e2a7dd37bbf7.tar.gz gpt4free-ef9127d876914813868536597926e2a7dd37bbf7.tar.bz2 gpt4free-ef9127d876914813868536597926e2a7dd37bbf7.tar.lz gpt4free-ef9127d876914813868536597926e2a7dd37bbf7.tar.xz gpt4free-ef9127d876914813868536597926e2a7dd37bbf7.tar.zst gpt4free-ef9127d876914813868536597926e2a7dd37bbf7.zip |
Diffstat (limited to 'gui/streamlit_chat_app.py')
-rw-r--r-- | gui/streamlit_chat_app.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/streamlit_chat_app.py b/gui/streamlit_chat_app.py index cd8c652e..fc5c8d8e 100644 --- a/gui/streamlit_chat_app.py +++ b/gui/streamlit_chat_app.py @@ -75,8 +75,10 @@ user_input = input_placeholder.text_input( ) submit_button = st.button("Submit") + if (user_input and user_input != st.session_state['input_text']) or submit_button: output = query(user_input, st.session_state['query_method']) + escaped_output = output.encode('utf-8').decode('unicode-escape') st.session_state.current_conversation['user_inputs'].append(user_input) @@ -95,6 +97,9 @@ if st.sidebar.button("New Conversation"): st.session_state['query_method'] = st.sidebar.selectbox("Select API:", options=avail_query_methods, index=0) +# Proxy +st.session_state['proxy'] = st.sidebar.text_input("Proxy: ") + # Sidebar st.sidebar.header("Conversation History") |