Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from gradio_client import Client
|
|
|
|
|
3 |
|
4 |
# Constants
|
5 |
TITLE = "Llama2 70B Chatbot"
|
@@ -69,3 +71,7 @@ if prompt := st.chat_input("Ask LLama-2-70b anything..."):
|
|
69 |
st.markdown(response)
|
70 |
# Add assistant response to chat history
|
71 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
from gradio_client import Client
|
3 |
+
from audio_recorder_streamlit import audio_recorder
|
4 |
+
|
5 |
|
6 |
# Constants
|
7 |
TITLE = "Llama2 70B Chatbot"
|
|
|
71 |
st.markdown(response)
|
72 |
# Add assistant response to chat history
|
73 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
74 |
+
|
75 |
+
audio_bytes = audio_recorder()
|
76 |
+
if audio_bytes:
|
77 |
+
st.audio(audio_bytes, format="audio/wav")
|