Spaces:
Build error
Build error
FauziIsyrinApridal
commited on
Commit
·
1a2e35d
1
Parent(s):
f93915b
..
Browse files- app/chat.py +2 -2
app/chat.py
CHANGED
@@ -46,7 +46,7 @@ def initialize_session_state():
|
|
46 |
if 'vector_store' not in st.session_state:
|
47 |
st.session_state['vector_store'] = None
|
48 |
if 'should_speak' not in st.session_state:
|
49 |
-
st.session_state['should_speak'] =
|
50 |
if 'input_text' not in st.session_state:
|
51 |
st.session_state['input_text'] = ""
|
52 |
if 'tts_output' not in st.session_state:
|
@@ -87,7 +87,7 @@ def text_to_speech(text):
|
|
87 |
|
88 |
return f"""
|
89 |
<audio autoplay>
|
90 |
-
<source src="data:audio/mp3;base64,{audio_base64}
|
91 |
</audio>
|
92 |
"""
|
93 |
except Exception as e:
|
|
|
46 |
if 'vector_store' not in st.session_state:
|
47 |
st.session_state['vector_store'] = None
|
48 |
if 'should_speak' not in st.session_state:
|
49 |
+
st.session_state['should_speak'] = False
|
50 |
if 'input_text' not in st.session_state:
|
51 |
st.session_state['input_text'] = ""
|
52 |
if 'tts_output' not in st.session_state:
|
|
|
87 |
|
88 |
return f"""
|
89 |
<audio autoplay>
|
90 |
+
<source src="data:audio/mp3;base64,{audio_base64}" type="audio/mp3">
|
91 |
</audio>
|
92 |
"""
|
93 |
except Exception as e:
|