Spaces:
Sleeping
Sleeping
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() | |