Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,8 @@ def story_from_caption(caption: str, pipe) -> str:
|
|
58 |
if not caption:
|
59 |
return "Could not generate a story without a caption."
|
60 |
prompt = (
|
61 |
-
f"Write an imaginative story 50–100 word story based
|
62 |
-
f"
|
63 |
)
|
64 |
results = pipe(
|
65 |
prompt,
|
@@ -168,4 +168,4 @@ with st.spinner("Synthesizing audio..."):
|
|
168 |
st.warning("Audio generation failed.")
|
169 |
else:
|
170 |
st.audio(audio_bytes, format="audio/wav")
|
171 |
-
st.balloons()
|
|
|
58 |
if not caption:
|
59 |
return "Could not generate a story without a caption."
|
60 |
prompt = (
|
61 |
+
f"Write an imaginative story 50–100 word story based on the caption: {caption}"
|
62 |
+
f"Be creative within the caption."
|
63 |
)
|
64 |
results = pipe(
|
65 |
prompt,
|
|
|
168 |
st.warning("Audio generation failed.")
|
169 |
else:
|
170 |
st.audio(audio_bytes, format="audio/wav")
|
171 |
+
st.balloons()
|