Spaces:
Sleeping
Sleeping
Commit
·
5fab478
1
Parent(s):
7ee6a30
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import openai
|
|
| 4 |
from langchain.schema import HumanMessage, SystemMessage, AIMessage
|
| 5 |
from langchain.chat_models import ChatOpenAI
|
| 6 |
|
|
|
|
| 7 |
|
| 8 |
def get_chatmodel_response(question):
|
| 9 |
# Retry logic
|
|
@@ -166,7 +167,7 @@ if submit:
|
|
| 166 |
)
|
| 167 |
|
| 168 |
# Embed audio in the webpage without saving it
|
| 169 |
-
st.header('Listen or Download
|
| 170 |
st.audio(audio_response.content,format="audio/wav",start_time=0)
|
| 171 |
|
| 172 |
|
|
|
|
| 4 |
from langchain.schema import HumanMessage, SystemMessage, AIMessage
|
| 5 |
from langchain.chat_models import ChatOpenAI
|
| 6 |
|
| 7 |
+
st.snow()
|
| 8 |
|
| 9 |
def get_chatmodel_response(question):
|
| 10 |
# Retry logic
|
|
|
|
| 167 |
)
|
| 168 |
|
| 169 |
# Embed audio in the webpage without saving it
|
| 170 |
+
st.header(':blue[Listen or Download] :loud_sound:')
|
| 171 |
st.audio(audio_response.content,format="audio/wav",start_time=0)
|
| 172 |
|
| 173 |
|