Spaces:
Runtime error
Runtime error
Update app.py
Browse files56 unmodified lines575859606162636465666768697071727356 unmodified lines# Standard prompt for image analysisprompt_text = ("You are an expert in scientific and engineering diagram analysis with a keen eye for detail. ""Your task is to meticulously examine the following image. ""Provide a comprehensive, factual, and technically precise explanation of what the image depicts, ""focusing on scientific or engineering principles. Highlight key components, their functions, ""and any numerical values such as dimensions, tolerances, material properties, or other relevant specifications. ""Explain the significance of these numerical values in the context of the image. ""Present your analysis in a clear, well-structured markdown format, suitable for an audience with a scientific or engineering background. ""Include any relevant scientific or engineering terminology to enhance the explanation. ""Additionally, create a concise caption in bold, summarizing the key aspects and numerical details of the image.")# Append additional prompt text if providedif additional_prompt_text:prompt_text += f"\n\nAdditional Prompt Instructions:\n{additional_prompt_text}"56 unmodified lines5758596061626364656667686970717256 unmodified lines# Standard prompt for image analysisprompt_text = ("You are an expert in scientific and engineering diagram analysis with a keen eye for detail. ","Your task is to meticulously examine the following image, with a special focus on identifying and interpreting every numerical value present. ","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. ","Discuss the significance of these numerical values in the context of the image, explaining how they contribute to the overall functionality and design. ","Present your analysis in a clear, well-structured markdown format, suitable for an audience with a scientific or engineering background. ","Use relevant scientific or engineering terminology to enhance the explanation of these numbers. ","Additionally, create a concise caption in bold, summarizing the key numerical aspects and their implications in the image.")# Append additional prompt text if providedif additional_prompt_text:prompt_text += f"\n\nAdditional Prompt Instructions:\n{additional_prompt_text}"
app.py+8-9