capradeepgujaran commited on
Commit
afaa213
·
verified ·
1 Parent(s): 64a9ffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def analyze_construction_image(image):
50
  "content": [
51
  {
52
  "type": "text",
53
- "text": "Analyze this construction site image. Identify any issues or snags, categorize them, provide a detailed description, and suggest steps to resolve them. Format your response as a JSON object with keys 'snag_category', 'snag_description', and 'desnag_steps' (as an array)."
54
  },
55
  {
56
  "type": "image_url",
@@ -147,7 +147,7 @@ with gr.Blocks() as iface:
147
  with gr.Column(scale=2):
148
  chatbot = gr.Chatbot(label="Analysis Results and Chat")
149
 
150
- msg = gr.Textbox(label="Ask a question about the image")
151
  clear = gr.Button("Clear Chat")
152
 
153
  analyze_button.click(
 
50
  "content": [
51
  {
52
  "type": "text",
53
+ "text": "Analyze this construction site image. Identify any issues or snags, categorize them, provide a detailed description, and suggest steps in numbered bullet points to resolve them. Format your response as a JSON object with keys 'snag_category', 'snag_description', and 'desnag_steps' (as an array)."
54
  },
55
  {
56
  "type": "image_url",
 
147
  with gr.Column(scale=2):
148
  chatbot = gr.Chatbot(label="Analysis Results and Chat")
149
 
150
+ msg = gr.Textbox(label="Ask a question about the image and press Enter)
151
  clear = gr.Button("Clear Chat")
152
 
153
  analyze_button.click(