webcam demo fixes

This commit is contained in:
Ali Abid 2021-03-02 17:17:32 -08:00
parent a9db9ecb4b
commit cf3923e307

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()