Spaces:
Running
Running
Update app.py
Browse files
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 |
|