Spaces:
Running
Running
ProfessorLeVesseur
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -51,9 +51,12 @@ complex_image_prompt_text = (
|
|
51 |
"As an expert in image accessibility and alternative text, thoroughly describe the image caption provided. "
|
52 |
"Provide a detailed description using not more than 500 characters that conveys the essential information in eight or fewer clear and concise sentences. "
|
53 |
"Skip phrases like 'image of' or 'picture of.' "
|
54 |
-
"Your description should form a clear, well-structured, and factual paragraph that avoids bullet points, focusing on creating a seamless narrative."
|
|
|
|
|
55 |
)
|
56 |
|
|
|
57 |
# Functions to query the Hugging Face Inference API
|
58 |
|
59 |
def query_image_caption(image):
|
|
|
51 |
"As an expert in image accessibility and alternative text, thoroughly describe the image caption provided. "
|
52 |
"Provide a detailed description using not more than 500 characters that conveys the essential information in eight or fewer clear and concise sentences. "
|
53 |
"Skip phrases like 'image of' or 'picture of.' "
|
54 |
+
"Your description should form a clear, well-structured, and factual paragraph that avoids bullet points, focusing on creating a seamless narrative. "
|
55 |
+
"Importantly, only describe what is visibly present in the image and avoid making assumptions or adding extraneous information. "
|
56 |
+
"Stick to the facts and ensure the description is accurate and reliable."
|
57 |
)
|
58 |
|
59 |
+
|
60 |
# Functions to query the Hugging Face Inference API
|
61 |
|
62 |
def query_image_caption(image):
|