Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|
|
|
|
|
|
|
|
|
|
|
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 |
-
["
|
154 |
-
["
|
155 |
-
["
|
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(
|