Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,12 +10,12 @@ def img2text(url):
|
|
10 |
|
11 |
# text2story
|
12 |
def text2story(text):
|
13 |
-
story_text = pipeline("text-
|
14 |
return story_text
|
15 |
|
16 |
# text2audio
|
17 |
def text2audio(story_text):
|
18 |
-
audio_data = pipeline("text-to-
|
19 |
|
20 |
#main part
|
21 |
|
|
|
10 |
|
11 |
# text2story
|
12 |
def text2story(text):
|
13 |
+
story_text = pipeline("text-generation", model="nomic-ai/gpt4all-j")
|
14 |
return story_text
|
15 |
|
16 |
# text2audio
|
17 |
def text2audio(story_text):
|
18 |
+
audio_data = pipeline("text-to-speech", model="facebook/mms-tts-yor")
|
19 |
|
20 |
#main part
|
21 |
|