Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,15 +69,16 @@ def ui():
|
|
| 69 |
verbose=True,
|
| 70 |
memory=ConversationBufferWindowMemory(k=2)
|
| 71 |
)
|
| 72 |
-
|
|
|
|
| 73 |
if 'history' not in st.session_state:
|
| 74 |
st.session_state['history'] = []
|
| 75 |
|
| 76 |
if 'generated' not in st.session_state:
|
| 77 |
-
st.session_state['generated'] = []
|
| 78 |
|
| 79 |
if 'past' not in st.session_state:
|
| 80 |
-
st.session_state['past'] = []
|
| 81 |
|
| 82 |
if user_api_key is not None and user_api_key.strip() != "":
|
| 83 |
eleven_labs_api_key = st.sidebar.text_input(
|
|
|
|
| 69 |
verbose=True,
|
| 70 |
memory=ConversationBufferWindowMemory(k=2)
|
| 71 |
)
|
| 72 |
+
good_morining_audio=librosa.load('./good-morning.mp3')
|
| 73 |
+
hi_audio=librosa.load('./good-morning-sir.mp3')
|
| 74 |
if 'history' not in st.session_state:
|
| 75 |
st.session_state['history'] = []
|
| 76 |
|
| 77 |
if 'generated' not in st.session_state:
|
| 78 |
+
st.session_state['generated'] = [hi_audio]
|
| 79 |
|
| 80 |
if 'past' not in st.session_state:
|
| 81 |
+
st.session_state['past'] = [good_morining_audio]
|
| 82 |
|
| 83 |
if user_api_key is not None and user_api_key.strip() != "":
|
| 84 |
eleven_labs_api_key = st.sidebar.text_input(
|