diff --git a/README.md b/README.md index a37dc9b..914128f 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,8 @@ Please note the following: ## Todo -- [ ] 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 ed3474f..3ced571 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 new file mode 100644 index 0000000..f1b82a2 Binary files /dev/null and b/openai_rev/forefront/__pycache__/__init__.cpython-39.pyc differ diff --git a/openai_rev/forefront/__pycache__/mail.cpython-39.pyc b/openai_rev/forefront/__pycache__/mail.cpython-39.pyc new file mode 100644 index 0000000..c903d3d Binary files /dev/null and b/openai_rev/forefront/__pycache__/mail.cpython-39.pyc differ diff --git a/openai_rev/forefront/__pycache__/models.cpython-39.pyc b/openai_rev/forefront/__pycache__/models.cpython-39.pyc new file mode 100644 index 0000000..153edef Binary files /dev/null and b/openai_rev/forefront/__pycache__/models.cpython-39.pyc differ diff --git a/openai_rev/quora/__pycache__/__init__.cpython-39.pyc b/openai_rev/quora/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..f5e4ef8 Binary files /dev/null and b/openai_rev/quora/__pycache__/__init__.cpython-39.pyc differ diff --git a/openai_rev/quora/__pycache__/api.cpython-39.pyc b/openai_rev/quora/__pycache__/api.cpython-39.pyc new file mode 100644 index 0000000..01645ec Binary files /dev/null and b/openai_rev/quora/__pycache__/api.cpython-39.pyc differ diff --git a/openai_rev/quora/__pycache__/mail.cpython-39.pyc b/openai_rev/quora/__pycache__/mail.cpython-39.pyc new file mode 100644 index 0000000..009a06e Binary files /dev/null and b/openai_rev/quora/__pycache__/mail.cpython-39.pyc differ diff --git a/openai_rev/theb/__pycache__/__init__.cpython-39.pyc b/openai_rev/theb/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..00d672b Binary files /dev/null and b/openai_rev/theb/__pycache__/__init__.cpython-39.pyc differ diff --git a/openai_rev/you/__pycache__/__init__.cpython-39.pyc b/openai_rev/you/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..7ba27a7 Binary files /dev/null and b/openai_rev/you/__pycache__/__init__.cpython-39.pyc differ