Fanny1366 commited on
Commit
c6d0787
·
verified ·
1 Parent(s): 6e29781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -14,7 +14,7 @@ def img2text(url):
14
 
15
  # text2story
16
  def text2story(text):
17
- story_pipeline = pipeline("text-generation", model="perplexity-ai/r1-1776", trust_remote_code=True)
18
  story_text = story_pipeline(text, max_length=200)[0]['generated_text']
19
  return story_text
20
 
@@ -61,5 +61,4 @@ if uploaded_file is not None:
61
  # Play button
62
  if st.button("Play Audio"):
63
  st.audio(audio_data,
64
- format="audio/wav",
65
- start_time=0)
 
14
 
15
  # text2story
16
  def text2story(text):
17
+ story_pipeline = pipeline("text-generation", model="GSAI-ML/LLaDA-8B-Instruct", trust_remote_code=True)
18
  story_text = story_pipeline(text, max_length=200)[0]['generated_text']
19
  return story_text
20
 
 
61
  # Play button
62
  if st.button("Play Audio"):
63
  st.audio(audio_data,
64
+ format="audio/mpeg")