Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,9 @@ def text2story(text):
|
|
17 |
|
18 |
# text2audio
|
19 |
def text2audio(story_text):
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
st.set_page_config(page_title="Your Image to Audio Story",
|
25 |
page_icon="🦜")
|
|
|
17 |
|
18 |
# text2audio
|
19 |
def text2audio(story_text):
|
20 |
+
text_to_audio = pipeline("text-to-audio", model="facebook/musicgen-medium")
|
21 |
+
audio_data = text_to_audio(story_text)
|
22 |
+
return audio_data
|
23 |
|
24 |
st.set_page_config(page_title="Your Image to Audio Story",
|
25 |
page_icon="🦜")
|