CineAI commited on
Commit
a2c9028
1 Parent(s): be26bab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -12,7 +12,6 @@ from llm.llm import LLM_chain
12
 
13
  # libraries from other authors
14
  from streamlit_mic_recorder import mic_recorder
15
- from streamlit_TTS import auto_play
16
 
17
  llmchain = LLM_chain()
18
 
@@ -24,8 +23,8 @@ def main():
24
  text = a2t.predict()
25
  response = llmchain(entity=text, id=0)
26
 
27
- audio, _, _ = T2A(response).get_audio()
28
- auto_play(audio)
29
 
30
  print(sys.getsizeof(response))
31
  print(sys.getsizeof(audio))
 
12
 
13
  # libraries from other authors
14
  from streamlit_mic_recorder import mic_recorder
 
15
 
16
  llmchain = LLM_chain()
17
 
 
23
  text = a2t.predict()
24
  response = llmchain(entity=text, id=0)
25
 
26
+ t2a = T2A(response)
27
+ t2a.autoplay()
28
 
29
  print(sys.getsizeof(response))
30
  print(sys.getsizeof(audio))