Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ analyze_button = st.button("Analyze the Image", type="secondary")
|
|
47 |
# Optimized prompt for complex images
|
48 |
complex_image_prompt_text = (
|
49 |
"As an expert in image accessibility and alternative text, thoroughly describe the image provided. "
|
50 |
-
"Provide a description that
|
51 |
"Skip phrases like 'image of' or 'picture of.' "
|
52 |
"Your description should form a clear, well-structured, and factual paragraph that avoids bullet points, focusing on creating a seamless narrative that serves as effective alternative text for accessibility purposes."
|
53 |
)
|
@@ -65,9 +65,9 @@ if uploaded_file is not None and analyze_button:
|
|
65 |
else:
|
66 |
prompt_text = (
|
67 |
"As an expert in image accessibility and alternative text, succinctly describe the image provided in less than 125 characters. "
|
68 |
-
"Provide a brief description using not more than 125 characters that
|
69 |
"Skip phrases like 'image of' or 'picture of.' "
|
70 |
-
"Your description should form a clear, well-structured, and factual paragraph that avoids bullet points, focusing on creating a seamless narrative that serves as effective alternative text for accessibility purposes."
|
71 |
)
|
72 |
|
73 |
if show_details and additional_details:
|
|
|
47 |
# Optimized prompt for complex images
|
48 |
complex_image_prompt_text = (
|
49 |
"As an expert in image accessibility and alternative text, thoroughly describe the image provided. "
|
50 |
+
"Provide a brief description using not more than 500 characters that convey the essential information conveyed by the image in eight or fewer clear and concise sentences for use as alt text. "
|
51 |
"Skip phrases like 'image of' or 'picture of.' "
|
52 |
"Your description should form a clear, well-structured, and factual paragraph that avoids bullet points, focusing on creating a seamless narrative that serves as effective alternative text for accessibility purposes."
|
53 |
)
|
|
|
65 |
else:
|
66 |
prompt_text = (
|
67 |
"As an expert in image accessibility and alternative text, succinctly describe the image provided in less than 125 characters. "
|
68 |
+
"Provide a brief description using not more than 125 characters that convey the essential information conveyed by the image in three or fewer clear and concise sentences for use as alt text. "
|
69 |
"Skip phrases like 'image of' or 'picture of.' "
|
70 |
+
"Your description should form a clear, well-structured, and factual paragraph that avoids bullet points and newlines, focusing on creating a seamless narrative that serves as effective alternative text for accessibility purposes."
|
71 |
)
|
72 |
|
73 |
if show_details and additional_details:
|