summaryrefslogtreecommitdiffstats
path: root/gui/streamlit_chat_app.py
diff options
context:
space:
mode:
authornoptuno <repollo.marrero@gmail.com>2023-04-28 02:38:18 +0200
committernoptuno <repollo.marrero@gmail.com>2023-04-28 02:38:18 +0200
commitf34f561617c5e6c9c875afb46d420a839c97084b (patch)
treefee15c7d940e4a6b66195f2a7e42aac6b4ce09ee /gui/streamlit_chat_app.py
parentFirst implementation of streamlit chat app in gui folder (diff)
downloadgpt4free-f34f561617c5e6c9c875afb46d420a839c97084b.tar
gpt4free-f34f561617c5e6c9c875afb46d420a839c97084b.tar.gz
gpt4free-f34f561617c5e6c9c875afb46d420a839c97084b.tar.bz2
gpt4free-f34f561617c5e6c9c875afb46d420a839c97084b.tar.lz
gpt4free-f34f561617c5e6c9c875afb46d420a839c97084b.tar.xz
gpt4free-f34f561617c5e6c9c875afb46d420a839c97084b.tar.zst
gpt4free-f34f561617c5e6c9c875afb46d420a839c97084b.zip
Diffstat (limited to 'gui/streamlit_chat_app.py')
-rw-r--r--gui/streamlit_chat_app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/streamlit_chat_app.py b/gui/streamlit_chat_app.py
index ed3474fd..3ced571a 100644
--- a/gui/streamlit_chat_app.py
+++ b/gui/streamlit_chat_app.py
@@ -7,7 +7,7 @@ import streamlit as st
from streamlit_chat import message
from query_methods import query, avail_query_methods
import pickle
-
+import openai_rev
conversations_file = "conversations.pkl"
@@ -71,9 +71,10 @@ if st.sidebar.button("New Conversation"):
st.session_state['current_conversation'] = {'user_inputs': [], 'generated_responses': []}
st.session_state['input_field_key'] += 1
-
+print(openai_rev.Provider.__methods__.keys())
st.session_state['query_method'] = st.sidebar.selectbox(
"Select API:",
+
options=avail_query_methods.keys(),
index=0
)