Resolved merge conflicts and merged pr_218 into STREAMLIT_CHAT_IMPLEMENTATION
このコミットが含まれているのは:
コミット
f34f561617
|
@ -49,8 +49,8 @@ Please note the following:
|
||||||
|
|
||||||
## Todo <a name="todo"></a>
|
## Todo <a name="todo"></a>
|
||||||
|
|
||||||
- [ ] Add a GUI for the repo
|
- [x] Add a GUI for the repo
|
||||||
- [ ] Make a general package named `openai_rev`, instead of different folders
|
- [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
|
- [ ] 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
|
- [ ] Integrate more API's in `./unfinished` as well as other ones in the lists
|
||||||
- [ ] Make an API to use as proxy for other projects
|
- [ ] Make an API to use as proxy for other projects
|
||||||
|
|
|
@ -7,7 +7,7 @@ import streamlit as st
|
||||||
from streamlit_chat import message
|
from streamlit_chat import message
|
||||||
from query_methods import query, avail_query_methods
|
from query_methods import query, avail_query_methods
|
||||||
import pickle
|
import pickle
|
||||||
|
import openai_rev
|
||||||
|
|
||||||
conversations_file = "conversations.pkl"
|
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['current_conversation'] = {'user_inputs': [], 'generated_responses': []}
|
||||||
st.session_state['input_field_key'] += 1
|
st.session_state['input_field_key'] += 1
|
||||||
|
|
||||||
|
print(openai_rev.Provider.__methods__.keys())
|
||||||
st.session_state['query_method'] = st.sidebar.selectbox(
|
st.session_state['query_method'] = st.sidebar.selectbox(
|
||||||
"Select API:",
|
"Select API:",
|
||||||
|
|
||||||
options=avail_query_methods.keys(),
|
options=avail_query_methods.keys(),
|
||||||
index=0
|
index=0
|
||||||
)
|
)
|
||||||
|
|
バイナリファイルは表示されません。
バイナリファイルは表示されません。
バイナリファイルは表示されません。
バイナリファイルは表示されません。
バイナリファイルは表示されません。
バイナリファイルは表示されません。
バイナリファイルは表示されません。
バイナリファイルは表示されません。
読み込み中…
新しいイシューから参照