Spaces:
Sleeping
Sleeping
SaladSlayer00
commited on
Commit
•
a36fb33
1
Parent(s):
8ace9a1
the REAL APP
Browse files
app.py
CHANGED
@@ -31,11 +31,14 @@ def process_frame(webcam_image):
|
|
31 |
processed_image = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
32 |
return Image.fromarray(processed_image)
|
33 |
|
34 |
-
|
35 |
demo = gr.Interface(
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
)
|
40 |
|
41 |
-
|
|
|
|
|
|
|
|
31 |
processed_image = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
32 |
return Image.fromarray(processed_image)
|
33 |
|
34 |
+
|
35 |
demo = gr.Interface(
|
36 |
+
process_frame,
|
37 |
+
gr.Image(type="pil"),
|
38 |
+
"image"
|
39 |
)
|
40 |
|
41 |
+
if __name__ == "__main__":
|
42 |
+
demo.launch()
|
43 |
+
|
44 |
+
|