Spaces:
Sleeping
Sleeping
MohammedNasser
commited on
Commit
•
4c8e89a
1
Parent(s):
17da7df
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import numpy as np
|
3 |
+
|
4 |
+
def flip(im):
|
5 |
+
return np.flipud(im)
|
6 |
+
|
7 |
+
catchcam = gr.Interface(
|
8 |
+
flip,
|
9 |
+
gr.Image(source="webcam", streaming=True),
|
10 |
+
"image",
|
11 |
+
live=True
|
12 |
+
)
|
13 |
+
catchcam.launch()
|