xujinheng666 commited on
Commit
279dec9
·
verified ·
1 Parent(s): bc922f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,12 +10,12 @@ def img2text(url):
10
 
11
  # text2story
12
  def text2story(text):
13
- story_text = pipeline("text-to-story", model="nomic-ai/gpt4all-j")
14
  return story_text
15
 
16
  # text2audio
17
  def text2audio(story_text):
18
- audio_data = pipeline("text-to-audio", model="facebook/mms-tts-yor")
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