not doing it live
Browse files
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 |
-
|
|
|
|
|
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()
|