capradeepgujaran commited on
Commit
aa93317
·
verified ·
1 Parent(s): 5e15e0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,7 +90,7 @@ def detect_snags_in_image(image_file):
90
  image_data_url = f"data:image/png;base64,{encode_image(resized_image)}"
91
 
92
  instruction = ("You are an AI assistant specialized in detecting snags in construction sites. "
93
- "Your task is to analyze the image and identify any construction defects, unfinished work, "
94
  "or quality issues. List each snag, categorize it, and provide a brief description. "
95
  "If no snags are detected, state that the area appears to be free of visible issues.")
96
 
@@ -129,7 +129,7 @@ def detect_snags_in_video(video_file):
129
  results = []
130
 
131
  instruction = ("You are an AI assistant specialized in detecting snags in construction sites. "
132
- "Your task is to analyze the video frame and identify any construction defects, unfinished work, "
133
  "or quality issues. List each snag, categorize it, and provide a brief description. "
134
  "If no snags are detected, state that the area appears to be free of visible issues.")
135
 
 
90
  image_data_url = f"data:image/png;base64,{encode_image(resized_image)}"
91
 
92
  instruction = ("You are an AI assistant specialized in detecting snags in construction sites. "
93
+ "Your task is to analyze the image and describe what you see in the image. Then identify any construction defects, unfinished work, "
94
  "or quality issues. List each snag, categorize it, and provide a brief description. "
95
  "If no snags are detected, state that the area appears to be free of visible issues.")
96
 
 
129
  results = []
130
 
131
  instruction = ("You are an AI assistant specialized in detecting snags in construction sites. "
132
+ "Your task is to analyze the video frame and describe what you see in the video. Then identify any construction defects, unfinished work, "
133
  "or quality issues. List each snag, categorize it, and provide a brief description. "
134
  "If no snags are detected, state that the area appears to be free of visible issues.")
135