Spaces:
Sleeping
Sleeping
Commit
·
2cf1d6e
1
Parent(s):
55e1db0
refactor: description of each use case
Browse files
app.py
CHANGED
|
@@ -24,7 +24,9 @@ def main():
|
|
| 24 |
)
|
| 25 |
|
| 26 |
if use_case == "Use Case: 1(Word-Sentences)":
|
| 27 |
-
st.header("
|
|
|
|
|
|
|
| 28 |
|
| 29 |
words = st.text_area(
|
| 30 |
"Words:",
|
|
@@ -72,6 +74,7 @@ def main():
|
|
| 72 |
|
| 73 |
elif use_case == "Use Case: 2(Image Describer)":
|
| 74 |
st.header("Image Description")
|
|
|
|
| 75 |
|
| 76 |
upload_method = st.radio(
|
| 77 |
"Choose Upload Method",
|
|
@@ -112,6 +115,7 @@ def main():
|
|
| 112 |
|
| 113 |
elif use_case == "Use Case: 3(Story Generator From Image)":
|
| 114 |
st.title("Story Generator from Images")
|
|
|
|
| 115 |
st.subheader("Upload up to 3 images and generate a children's story")
|
| 116 |
|
| 117 |
uploaded_files = st.file_uploader(
|
|
|
|
| 24 |
)
|
| 25 |
|
| 26 |
if use_case == "Use Case: 1(Word-Sentences)":
|
| 27 |
+
st.header("Word to Sentence Generation")
|
| 28 |
+
st.write(
|
| 29 |
+
"Enter a list of words and the child interest to generate the content for eg.Words: Apple, Banana interest: Ironman")
|
| 30 |
|
| 31 |
words = st.text_area(
|
| 32 |
"Words:",
|
|
|
|
| 74 |
|
| 75 |
elif use_case == "Use Case: 2(Image Describer)":
|
| 76 |
st.header("Image Description")
|
| 77 |
+
st.write("Upload an image or capture from camera to generate to generate the description of the image")
|
| 78 |
|
| 79 |
upload_method = st.radio(
|
| 80 |
"Choose Upload Method",
|
|
|
|
| 115 |
|
| 116 |
elif use_case == "Use Case: 3(Story Generator From Image)":
|
| 117 |
st.title("Story Generator from Images")
|
| 118 |
+
st.write("Story writer from the images. Upload up to 3 images to generate a children's story.")
|
| 119 |
st.subheader("Upload up to 3 images and generate a children's story")
|
| 120 |
|
| 121 |
uploaded_files = st.file_uploader(
|