arjunanand13 commited on
Commit
ec3e4d8
·
verified ·
1 Parent(s): 987f76d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -119,7 +119,12 @@ def analyze_video(video_path):
119
  {
120
  "role": "user",
121
  "content": [
122
- {"type": "text", "text": "Analyze this gas pipe quality control video and classify into one category: 1) PASSED - pipe taken from Region A, dipped in water, no bubbles, moved to Region B. Example: Person picks pipe from left side, tests in water, no bubbles seen, places in right side. 2) FAILED - pipe tested in water, bubbles visible. Example: Person dips pipe in water, bubbles appear indicating leak, pipe rejected. 3) CHEATING - pipe moved from A to B without testing. Example: Person takes pipe from left and directly places in right without water test. Give classification and brief reason."},
 
 
 
 
 
123
  {"type": "video"},
124
  ],
125
  },
@@ -150,9 +155,9 @@ def analyze_video(video_path):
150
  return frame_paths, result, hand_tracking_summary
151
 
152
  examples = [
153
- ["/front view/07.mp4"],
154
- ["//front view/09.mp4"],
155
- ["/front view/29.mp4"]
156
  ]
157
 
158
  iface = gr.Interface(
 
119
  {
120
  "role": "user",
121
  "content": [
122
+ {"type": "text", "text": """Analyze this gas pipe quality control video and classify into one category:
123
+ 1) PASSED - pipe taken from Region A, dipped in water, no bubbles, moved to Region B.
124
+ Example: Person picks pipe from left side, tests in water, no bubbles seen, places in right side.
125
+ 2) FAILED - pipe tested in water, bubbles visible. Example: Person dips pipe in water, bubbles appear indicating leak, pipe rejected.
126
+ 3) CHEATING - pipe moved from A to B without testing. Example: Person takes pipe from left and directly places in right without water test.
127
+ Give classification and brief reason."""},
128
  {"type": "video"},
129
  ],
130
  },
 
155
  return frame_paths, result, hand_tracking_summary
156
 
157
  examples = [
158
+ ["07.mp4"],
159
+ ["09.mp4"],
160
+ ["29.mp4"]
161
  ]
162
 
163
  iface = gr.Interface(