BigRatz commited on
Commit
65ab63a
·
1 Parent(s): 2959b50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
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
- "focusing on scientific or engineering principles. Highlight key components, their functions, "
64
- "and any numerical values such as dimensions, tolerances, material properties, or other relevant specifications. "
65
- "Explain the significance of these numerical values in the context of the image. "
66
- "Present your analysis in a clear, well-structured markdown format, suitable for an audience with a scientific or engineering background. "
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}"