summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore9
-rw-r--r--README.md4
-rw-r--r--gui/query_methods.py1
-rw-r--r--gui/streamlit_chat_app.py1
-rw-r--r--openai_rev/forefront/__pycache__/__init__.cpython-39.pycbin0 -> 4705 bytes
-rw-r--r--openai_rev/forefront/__pycache__/mail.cpython-39.pycbin0 -> 2387 bytes
-rw-r--r--openai_rev/forefront/__pycache__/models.cpython-39.pycbin0 -> 1048 bytes
-rw-r--r--openai_rev/quora/__pycache__/__init__.cpython-39.pycbin0 -> 16849 bytes
-rw-r--r--openai_rev/quora/__pycache__/api.cpython-39.pycbin0 -> 14020 bytes
-rw-r--r--openai_rev/quora/__pycache__/mail.cpython-39.pycbin0 -> 2456 bytes
-rw-r--r--openai_rev/theb/__pycache__/__init__.cpython-39.pycbin0 -> 1897 bytes
-rw-r--r--openai_rev/you/__pycache__/__init__.cpython-39.pycbin0 -> 3467 bytes
-rw-r--r--requirements.txt3
13 files changed, 14 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index eaa668e6..b063aca5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,15 @@
/dataSources/
/dataSources.local.xml
+# Ignore local python virtual environment
+venv/
+
+# Ignore streamlit_chat_app.py conversations pickle
+conversations.pkl
+
+# Ignore accounts created by api's
+accounts.txt
+
.idea/
**/__pycache__/
diff --git a/README.md b/README.md
index 7eff0098..7946cfca 100644
--- a/README.md
+++ b/README.md
@@ -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/query_methods.py b/gui/query_methods.py
index 733c3a07..08a81b64 100644
--- a/gui/query_methods.py
+++ b/gui/query_methods.py
@@ -47,7 +47,6 @@ def query_you(question: str) -> str:
try:
result = you.Completion.create(
prompt = question)
-
return result.text
except Exception as e:
diff --git a/gui/streamlit_chat_app.py b/gui/streamlit_chat_app.py
index f64d43f0..09d53bcf 100644
--- a/gui/streamlit_chat_app.py
+++ b/gui/streamlit_chat_app.py
@@ -71,6 +71,7 @@ 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=openai_rev.Provider.__members__.keys(),
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 00000000..f1b82a23
--- /dev/null
+++ b/openai_rev/forefront/__pycache__/__init__.cpython-39.pyc
Binary files 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 00000000..c903d3db
--- /dev/null
+++ b/openai_rev/forefront/__pycache__/mail.cpython-39.pyc
Binary files 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 00000000..153edef7
--- /dev/null
+++ b/openai_rev/forefront/__pycache__/models.cpython-39.pyc
Binary files 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 00000000..f5e4ef8d
--- /dev/null
+++ b/openai_rev/quora/__pycache__/__init__.cpython-39.pyc
Binary files 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 00000000..01645ec7
--- /dev/null
+++ b/openai_rev/quora/__pycache__/api.cpython-39.pyc
Binary files 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 00000000..009a06ef
--- /dev/null
+++ b/openai_rev/quora/__pycache__/mail.cpython-39.pyc
Binary files 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 00000000..00d672bd
--- /dev/null
+++ b/openai_rev/theb/__pycache__/__init__.cpython-39.pyc
Binary files 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 00000000..7ba27a73
--- /dev/null
+++ b/openai_rev/you/__pycache__/__init__.cpython-39.pyc
Binary files differ
diff --git a/requirements.txt b/requirements.txt
index b5a06bae..d30b29aa 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -9,4 +9,5 @@ streamlit==1.21.0
selenium
fake-useragent
twocaptcha
-pydantic \ No newline at end of file
+https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip
+pydantic