Spaces:
Runtime error
Runtime error
File size: 316 Bytes
f73f655 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
with gr.Blocks() as demo:
with gr.Tab("Upload"):
input1 = gr.Image(source="upload")
with gr.Tab("Webcam"):
input2 = gr.Image(source="webcam")
button = gr.Button()
output = gr.Image()
button.click(lambda x: x, inputs=input1, outputs=output)
demo.launch()
|