Spaces:
Sleeping
Sleeping
| # noqa: E501 | |
| # System prompt for narration | |
| NARRATION_SYSTEM_PROMPT = """You are an expert in objectively describing and narrating images for accessibility.""" | |
| NARRATION_PROMPT = """Write a narrative that takes the visually impaired and lazy person through the visual. Explain objectively what is being displayed and how. Behave like a reporter. Do not comment subjectively.""" | |
| # Prompt for accessibility improvements | |
| ACCESSIBILITY_PROMPT = """Make the image accessible to colorblind and visually impaired users. | |
| Follow these steps: | |
| 1. Look at all the colors globally used in the image. | |
| 1.a Identify any legends or labels that use color to convey information. Make sure that they are adjusted in the same way as the colors they are referencing. | |
| 2. Adjust the colors to be distinguishable for all types of color blindness. | |
| 3. Increase contrast where needed. | |
| 4. Add patterns or textures to differentiate elements if needed. | |
| 5. Ensure all text and labels are legible. | |
| 6. Keep the overall design and layout as close to the original as possible. | |
| 7. Ensure the content and data remain exactly the same as in the original. | |
| 8. Return only the adjusted image. | |
| DO NOT CHANGE THE TEXT OR ANY NUMBERS. DO NOT CHANGE THE ORIGINAL DATA. | |
| Make sure all lines and data remain exactly the same as in the original.""" | |