diff options
author | noptuno <repollo.marrero@gmail.com> | 2023-04-28 02:38:18 +0200 |
---|---|---|
committer | noptuno <repollo.marrero@gmail.com> | 2023-04-28 02:38:18 +0200 |
commit | f34f561617c5e6c9c875afb46d420a839c97084b (patch) | |
tree | fee15c7d940e4a6b66195f2a7e42aac6b4ce09ee | |
parent | First implementation of streamlit chat app in gui folder (diff) | |
download | gpt4free-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 '')
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | gui/streamlit_chat_app.py | 5 | ||||
-rw-r--r-- | openai_rev/forefront/__pycache__/__init__.cpython-39.pyc | bin | 0 -> 4705 bytes | |||
-rw-r--r-- | openai_rev/forefront/__pycache__/mail.cpython-39.pyc | bin | 0 -> 2387 bytes | |||
-rw-r--r-- | openai_rev/forefront/__pycache__/models.cpython-39.pyc | bin | 0 -> 1048 bytes | |||
-rw-r--r-- | openai_rev/quora/__pycache__/__init__.cpython-39.pyc | bin | 0 -> 16849 bytes | |||
-rw-r--r-- | openai_rev/quora/__pycache__/api.cpython-39.pyc | bin | 0 -> 14020 bytes | |||
-rw-r--r-- | openai_rev/quora/__pycache__/mail.cpython-39.pyc | bin | 0 -> 2456 bytes | |||
-rw-r--r-- | openai_rev/theb/__pycache__/__init__.cpython-39.pyc | bin | 0 -> 1897 bytes | |||
-rw-r--r-- | openai_rev/you/__pycache__/__init__.cpython-39.pyc | bin | 0 -> 3467 bytes |
10 files changed, 5 insertions, 4 deletions
@@ -49,8 +49,8 @@ Please note the following: ## Todo <a name="todo"></a> -- [ ] Add a GUI for the repo -- [ ] Make a general package named `openai_rev`, instead of different folders +- [x] Add a GUI for the repo +- [x] Make a general package named `openai_rev`, instead of different folders - [ ] Live api status to know which are down and which can be used - [ ] Integrate more API's in `./unfinished` as well as other ones in the lists - [ ] Make an API to use as proxy for other projects 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 ) diff --git a/openai_rev/forefront/__pycache__/__init__.cpython-39.pyc b/openai_rev/forefront/__pycache__/__init__.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..f1b82a23 --- /dev/null +++ b/openai_rev/forefront/__pycache__/__init__.cpython-39.pyc diff --git a/openai_rev/forefront/__pycache__/mail.cpython-39.pyc b/openai_rev/forefront/__pycache__/mail.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..c903d3db --- /dev/null +++ b/openai_rev/forefront/__pycache__/mail.cpython-39.pyc diff --git a/openai_rev/forefront/__pycache__/models.cpython-39.pyc b/openai_rev/forefront/__pycache__/models.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..153edef7 --- /dev/null +++ b/openai_rev/forefront/__pycache__/models.cpython-39.pyc diff --git a/openai_rev/quora/__pycache__/__init__.cpython-39.pyc b/openai_rev/quora/__pycache__/__init__.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..f5e4ef8d --- /dev/null +++ b/openai_rev/quora/__pycache__/__init__.cpython-39.pyc diff --git a/openai_rev/quora/__pycache__/api.cpython-39.pyc b/openai_rev/quora/__pycache__/api.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..01645ec7 --- /dev/null +++ b/openai_rev/quora/__pycache__/api.cpython-39.pyc diff --git a/openai_rev/quora/__pycache__/mail.cpython-39.pyc b/openai_rev/quora/__pycache__/mail.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..009a06ef --- /dev/null +++ b/openai_rev/quora/__pycache__/mail.cpython-39.pyc diff --git a/openai_rev/theb/__pycache__/__init__.cpython-39.pyc b/openai_rev/theb/__pycache__/__init__.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..00d672bd --- /dev/null +++ b/openai_rev/theb/__pycache__/__init__.cpython-39.pyc diff --git a/openai_rev/you/__pycache__/__init__.cpython-39.pyc b/openai_rev/you/__pycache__/__init__.cpython-39.pyc Binary files differnew file mode 100644 index 00000000..7ba27a73 --- /dev/null +++ b/openai_rev/you/__pycache__/__init__.cpython-39.pyc |