File size: 447 Bytes
69b8881
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr

# A simple function to just display the live video feed
def show_live_webcam(image):
    return image

# Create a Gradio Interface for the webcam feed
webcam_interface = gr.Interface(
    fn=show_live_webcam,
    inputs=gr.Image(source="webcam", streaming=True),
    outputs="image",
    title="Live Webcam Feed",
    description="Displays the live feed from your webcam."
)

# Launch the Gradio app
webcam_interface.launch()