lsb commited on
Commit
5533283
1 Parent(s): a09c55b

not doing it live

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -63,5 +63,7 @@ def app(img):
63
  img = Image.fromarray(np.stack([npimg[:, :, 0], 255 - npimg[:,:,1], npimg[:,:,2]], axis=-1))
64
  return img
65
 
66
- iface = gr.Interface(app, gr.Image(sources=["webcam"], streaming=True), "image", live=True)
 
 
67
  iface.launch()
 
63
  img = Image.fromarray(np.stack([npimg[:, :, 0], 255 - npimg[:,:,1], npimg[:,:,2]], axis=-1))
64
  return img
65
 
66
+ #ideally:
67
+ #iface = gr.Interface(app, gr.Image(sources=["webcam"], streaming=True), "image", live=True)
68
+ iface = gr.Interface(app, gr.inputs.Image(), "image")
69
  iface.launch()