Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,6 @@ if uploaded_file:
|
|
31 |
# Toggle for showing additional details input
|
32 |
show_details = st.toggle("Add details about the image. ", value=False)
|
33 |
|
34 |
-
# Toggle for modifying the prompt for complex images
|
35 |
-
complex_image = st.toggle("Is this a complex image? ", value=False)
|
36 |
-
|
37 |
if show_details:
|
38 |
# Text input for additional details about the image, shown only if toggle is True
|
39 |
additional_details = st.text_area(
|
@@ -41,6 +38,19 @@ if show_details:
|
|
41 |
disabled=not show_details
|
42 |
)
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
# Button to trigger the analysis
|
45 |
analyze_button = st.button("Analyze the Image", type="secondary")
|
46 |
|
|
|
31 |
# Toggle for showing additional details input
|
32 |
show_details = st.toggle("Add details about the image. ", value=False)
|
33 |
|
|
|
|
|
|
|
34 |
if show_details:
|
35 |
# Text input for additional details about the image, shown only if toggle is True
|
36 |
additional_details = st.text_area(
|
|
|
38 |
disabled=not show_details
|
39 |
)
|
40 |
|
41 |
+
# Toggle for modifying the prompt for complex images
|
42 |
+
complex_image = st.toggle("Is this a complex image? ", value=False)
|
43 |
+
|
44 |
+
if complex_image:
|
45 |
+
# Text input for additional details about the image, shown only if toggle is True
|
46 |
+
complex_image_details = st.caption(
|
47 |
+
"By checking this box, it will inform MTSS.ai to create a robust description that exceeds the 125 character limit. You will add the description to a placeholder behind the image. Add 'Description in the content placeholder' in the alt text box. ",
|
48 |
+
disabled=not complex_image
|
49 |
+
)
|
50 |
+
|
51 |
+
st.caption('This is a string that explains something above.')
|
52 |
+
|
53 |
+
|
54 |
# Button to trigger the analysis
|
55 |
analyze_button = st.button("Analyze the Image", type="secondary")
|
56 |
|