Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,17 +57,16 @@ if uploaded_file is not None and api_key and analyze_button:
|
|
| 57 |
|
| 58 |
# Standard prompt for image analysis
|
| 59 |
prompt_text = (
|
| 60 |
-
"You are an expert in scientific and engineering diagram analysis with a keen eye for detail. "
|
| 61 |
-
"Your task is to meticulously examine the following image. "
|
| 62 |
-
"Provide a comprehensive, factual, and technically precise explanation of what the image depicts, "
|
| 63 |
-
"
|
| 64 |
-
"
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"Include any relevant scientific or engineering terminology to enhance the explanation. "
|
| 68 |
-
"Additionally, create a concise caption in bold, summarizing the key aspects and numerical details of the image."
|
| 69 |
)
|
| 70 |
|
|
|
|
| 71 |
# Append additional prompt text if provided
|
| 72 |
if additional_prompt_text:
|
| 73 |
prompt_text += f"\n\nAdditional Prompt Instructions:\n{additional_prompt_text}"
|
|
|
|
| 57 |
|
| 58 |
# Standard prompt for image analysis
|
| 59 |
prompt_text = (
|
| 60 |
+
"You are an expert in scientific and engineering diagram analysis with a keen eye for detail. ",
|
| 61 |
+
"Your task is to meticulously examine the following image, with a special focus on identifying and interpreting every numerical value present. ",
|
| 62 |
+
"Provide a comprehensive, factual, and technically precise explanation of what the image depicts, emphasizing the numerical values such as dimensions, tolerances, material properties, or other relevant specifications. ",
|
| 63 |
+
"Discuss the significance of these numerical values in the context of the image, explaining how they contribute to the overall functionality and design. ",
|
| 64 |
+
"Present your analysis in a clear, well-structured markdown format, suitable for an audience with a scientific or engineering background. ",
|
| 65 |
+
"Use relevant scientific or engineering terminology to enhance the explanation of these numbers. ",
|
| 66 |
+
"Additionally, create a concise caption in bold, summarizing the key numerical aspects and their implications in the image."
|
|
|
|
|
|
|
| 67 |
)
|
| 68 |
|
| 69 |
+
|
| 70 |
# Append additional prompt text if provided
|
| 71 |
if additional_prompt_text:
|
| 72 |
prompt_text += f"\n\nAdditional Prompt Instructions:\n{additional_prompt_text}"
|