Spaces:
Runtime error
Runtime error
Commit
·
f73f655
1
Parent(s):
b4f9f62
Add application file
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
with gr.Blocks() as demo:
|
5 |
+
with gr.Tab("Upload"):
|
6 |
+
input1 = gr.Image(source="upload")
|
7 |
+
with gr.Tab("Webcam"):
|
8 |
+
input2 = gr.Image(source="webcam")
|
9 |
+
|
10 |
+
button = gr.Button()
|
11 |
+
output = gr.Image()
|
12 |
+
|
13 |
+
button.click(lambda x: x, inputs=input1, outputs=output)
|
14 |
+
|
15 |
+
|
16 |
+
demo.launch()
|