webcam demo fixes

This commit is contained in:
Ali Abid 2021-03-02 17:17:32 -08:00
parent 96d0f68bf9
commit 4fcc03497f

View File

@ -33,7 +33,7 @@ def segment_face(inp):
return result / 255
iface = gr.Interface(segment_face, gr.inputs.Image(source="webcam", tools=None), "image", capture_session=True)
iface = gr.Interface(segment_face, gr.inputs.Image(source="webcam", tool=None), "image", capture_session=True)
if __name__ == "__main__":
iface.launch()