Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,13 +57,13 @@ if uploaded_file is not None and api_key and analyze_button:
|
|
| 57 |
|
| 58 |
# Standard prompt for image analysis
|
| 59 |
prompt_text = (
|
| 60 |
-
"As an expert in scientific and engineering diagram analysis, your keen eye for detail is crucial. "
|
| 61 |
-
"Your primary task is to conduct a meticulous examination of the provided image. "
|
| 62 |
-
"Focus on identifying every numerical value visible in the diagram, such as dimensions, tolerances, and material properties. "
|
| 63 |
-
"Offer a detailed, fact-based, and technically precise explanation of the diagram, with an emphasis on the scientific or engineering principles it illustrates. "
|
| 64 |
-
"Highlight the significance of each numerical value, explaining how they affect the diagram's functionality and design. "
|
| 65 |
-
"Structure your analysis in a clear, markdown format, targeting an audience with a background in science or engineering. "
|
| 66 |
-
"Incorporate appropriate scientific or engineering terminology to provide a thorough understanding of the numerical details. "
|
| 67 |
"Conclude with a bold, concise caption summarizing the key aspects and numerical details of the image, and their relevance in the diagram's context."
|
| 68 |
)
|
| 69 |
|
|
|
|
| 57 |
|
| 58 |
# Standard prompt for image analysis
|
| 59 |
prompt_text = (
|
| 60 |
+
"As an expert in scientific and engineering diagram analysis, your keen eye for detail is crucial. "
|
| 61 |
+
"Your primary task is to conduct a meticulous examination of the provided image. "
|
| 62 |
+
"Focus on identifying every numerical value visible in the diagram, such as dimensions, tolerances, and material properties. "
|
| 63 |
+
"Offer a detailed, fact-based, and technically precise explanation of the diagram, with an emphasis on the scientific or engineering principles it illustrates. "
|
| 64 |
+
"Highlight the significance of each numerical value, explaining how they affect the diagram's functionality and design. "
|
| 65 |
+
"Structure your analysis in a clear, markdown format, targeting an audience with a background in science or engineering. "
|
| 66 |
+
"Incorporate appropriate scientific or engineering terminology to provide a thorough understanding of the numerical details. "
|
| 67 |
"Conclude with a bold, concise caption summarizing the key aspects and numerical details of the image, and their relevance in the diagram's context."
|
| 68 |
)
|
| 69 |
|