lakshya-raj
commited on
Commit
•
f62dfcf
1
Parent(s):
cd5cba0
v1.0.1-First Commit
Browse files- app.py +14 -0
- requirements +2 -0
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import numpy as np
|
3 |
+
|
4 |
+
def flip(im):
|
5 |
+
return np.flipud(im)
|
6 |
+
|
7 |
+
demo = gr.Interface(
|
8 |
+
flip,
|
9 |
+
gr.Image(source="webcam", streaming=True),
|
10 |
+
"image",
|
11 |
+
live=True
|
12 |
+
)
|
13 |
+
demo.launch()
|
14 |
+
|
requirements
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio
|
2 |
+
numpy
|