ElvisTsang commited on
Commit
9d08248
Β·
verified Β·
1 Parent(s): 8f539f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,7 +19,7 @@ def text2audio(story_text):
19
  return audio_output
20
 
21
  st.set_page_config(page_title="Once Upon A Time - Storytelling Application", page_icon="πŸ“–")
22
- st.header("Create a story of yours with an image!πŸ°πŸ¦„πŸ§™")
23
  uploaded_file = st.file_uploader("Upload an image for creating your story!")
24
 
25
  if uploaded_file is not None:
@@ -29,11 +29,11 @@ if uploaded_file is not None:
29
  file.write(bytes_data)
30
  st.image(uploaded_file, caption="Uploaded Image", use_container_width=True)
31
 
32
- st.text('Entering the scene...')
33
  scenario = img2text(uploaded_file.name)
34
  st.write(scenario)
35
 
36
- st.text('Your story is going to begin...')
37
  story = text2story(scenario)
38
  st.write(story)
39
 
 
19
  return audio_output
20
 
21
  st.set_page_config(page_title="Once Upon A Time - Storytelling Application", page_icon="πŸ“–")
22
+ st.header("Create a story of yours with an image!πŸ§™")
23
  uploaded_file = st.file_uploader("Upload an image for creating your story!")
24
 
25
  if uploaded_file is not None:
 
29
  file.write(bytes_data)
30
  st.image(uploaded_file, caption="Uploaded Image", use_container_width=True)
31
 
32
+ st.text('Entering the scene...🏰')
33
  scenario = img2text(uploaded_file.name)
34
  st.write(scenario)
35
 
36
+ st.text('Your story is going to begin...πŸ¦„')
37
  story = text2story(scenario)
38
  st.write(story)
39