CineAI commited on
Commit
edb639b
1 Parent(s): 9b0d264

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,8 +15,8 @@ llmchain = LLM_chain()
15
 
16
  def autoplay(audio, wait: bool=True):
17
  if audio:
18
- audio_bytes = audio["bytes"]
19
- sample_rate = audio["sample_rate"]
20
  sample_width = audio["sample_width"]
21
  total_samples = len(audio_bytes) / sample_width
22
  duration = total_samples / sample_rate
 
15
 
16
  def autoplay(audio, wait: bool=True):
17
  if audio:
18
+ audio_bytes = audio
19
+ sample_rate = 16000
20
  sample_width = audio["sample_width"]
21
  total_samples = len(audio_bytes) / sample_width
22
  duration = total_samples / sample_rate