Update app.py
Browse files
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 |
-
|
28 |
-
|
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))
|