Alex Gonzalez
Changed Output to a Label
f154644
raw
history blame
409 Bytes
import gradio as gr
with gr.Blocks() as demo:
with gr.Row():
with gr.Column():
input_img = gr.Image(label="Input", sources="webcam")
with gr.Column():
output_lbl = gr.Label(value="Output")
input_img.stream(lambda s: s, inputs=[input_img], outputs=[text], time_limit=15, stream_every=0.1, concurrency_limit=30)
if __name__ == "__main__":
demo.launch()