ProfessorLeVesseur commited on
Commit
f75c619
·
verified ·
1 Parent(s): 6e79c2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 conveys the essential information conveyed by the image 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,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 conveys 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, 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: