Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def img2text(url):
|
|
14 |
|
15 |
# text2story
|
16 |
def text2story(text):
|
17 |
-
story_pipeline = pipeline("text-generation", model="
|
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 |
-
|
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")
|
|