Spaces:
Runtime error
Runtime error
JefferyJapheth
commited on
Commit
•
60eabb7
1
Parent(s):
2abb6d3
added webcam_interface = gr.Interface( fn=predict_with_webcam, inputs=gr.inputs.Image(shape=(480, 640), source="webcam"), outputs=gr.outputs.Label(), # Use "Label" type instead of "Textbox" live=True, interpretation="default", title="Webcam Landmark Prediction", description="Make predictions using landmarks extracted from your webcam stream.", )
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def predict_with_webcam(frame):
|
|
134 |
webcam_interface = gr.Interface(
|
135 |
fn=predict_with_webcam,
|
136 |
inputs=gr.inputs.Image(shape=(480, 640), source="webcam"),
|
137 |
-
outputs=gr.outputs.
|
138 |
live=True,
|
139 |
interpretation="default",
|
140 |
title="Webcam Landmark Prediction",
|
@@ -143,6 +143,7 @@ webcam_interface = gr.Interface(
|
|
143 |
|
144 |
|
145 |
|
|
|
146 |
# Launch the Gradio app with the webcam interface
|
147 |
if __name__ == "__main__":
|
148 |
webcam_interface.launch()
|
|
|
134 |
webcam_interface = gr.Interface(
|
135 |
fn=predict_with_webcam,
|
136 |
inputs=gr.inputs.Image(shape=(480, 640), source="webcam"),
|
137 |
+
outputs=gr.outputs.Label(), # Use "Label" type instead of "Textbox"
|
138 |
live=True,
|
139 |
interpretation="default",
|
140 |
title="Webcam Landmark Prediction",
|
|
|
143 |
|
144 |
|
145 |
|
146 |
+
|
147 |
# Launch the Gradio app with the webcam interface
|
148 |
if __name__ == "__main__":
|
149 |
webcam_interface.launch()
|