Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,6 @@ import transformers
|
|
14 |
from transformers import pipeline
|
15 |
from bark import SAMPLE_RATE, generate_audio, preload_models
|
16 |
from scipy.io.wavfile import write as write_wav
|
17 |
-
from IPython.display import Audio
|
18 |
import gradio as gr
|
19 |
|
20 |
# Code
|
@@ -71,8 +70,7 @@ def abstract_to_audio(insert_pdf):
|
|
71 |
text_prompt = tss_prompt
|
72 |
audio_array = generate_audio(text_prompt)
|
73 |
|
74 |
-
|
75 |
-
return Audio(audio_array, rate=SAMPLE_RATE)
|
76 |
|
77 |
|
78 |
|
|
|
14 |
from transformers import pipeline
|
15 |
from bark import SAMPLE_RATE, generate_audio, preload_models
|
16 |
from scipy.io.wavfile import write as write_wav
|
|
|
17 |
import gradio as gr
|
18 |
|
19 |
# Code
|
|
|
70 |
text_prompt = tss_prompt
|
71 |
audio_array = generate_audio(text_prompt)
|
72 |
|
73 |
+
|
|
|
74 |
|
75 |
|
76 |
|