justREE commited on
Commit
29df25d
·
verified ·
1 Parent(s): 654e0e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 only on {caption}"
62
- f"Do not add new details."
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()