YingxuHe commited on
Commit
0f41366
·
verified ·
1 Parent(s): 5f13969

Update pages.py

Browse files
Files changed (1) hide show
  1. pages.py +2 -1
pages.py CHANGED
@@ -131,9 +131,10 @@ def audio_llm():
131
 
132
  if st.session_state.audio_array.size:
133
  with st.chat_message("user"):
134
- st.audio(st.session_state.audio_array, format="audio/wav", sample_rate=16000)
135
  if st.session_state.audio_array.shape[0] / 16000 > 30.0:
136
  st.warning("MERaLiON-AudioLLM can only process audio for up to 30 seconds. Audio longer than that will be truncated.")
 
 
137
  st.session_state.update(on_upload=False, on_record=False, on_select=False)
138
 
139
  for i, inst in enumerate(st.session_state.default_instruction):
 
131
 
132
  if st.session_state.audio_array.size:
133
  with st.chat_message("user"):
 
134
  if st.session_state.audio_array.shape[0] / 16000 > 30.0:
135
  st.warning("MERaLiON-AudioLLM can only process audio for up to 30 seconds. Audio longer than that will be truncated.")
136
+
137
+ st.audio(st.session_state.audio_array, format="audio/wav", sample_rate=16000)
138
  st.session_state.update(on_upload=False, on_record=False, on_select=False)
139
 
140
  for i, inst in enumerate(st.session_state.default_instruction):