Spaces:
Runtime error
Runtime error
Update gradio_demos/modules.py
Browse files- gradio_demos/modules.py +2 -2
gradio_demos/modules.py
CHANGED
@@ -190,10 +190,10 @@ class WebcamDemo:
|
|
190 |
|
191 |
class ExampleDemo(WebcamDemo):
|
192 |
|
193 |
-
def __init__(self, anonymizer) -> None:
|
194 |
self.anonymizer = anonymizer
|
195 |
with gradio.Row():
|
196 |
-
input_image = gradio.Image(type="pil", source=
|
197 |
output_image = gradio.Image(type="numpy", label="Output")
|
198 |
with gradio.Row():
|
199 |
update_btn = gradio.Button("Update Anonymization").style(full_width=True)
|
|
|
190 |
|
191 |
class ExampleDemo(WebcamDemo):
|
192 |
|
193 |
+
def __init__(self, anonymizer, source="webcam") -> None:
|
194 |
self.anonymizer = anonymizer
|
195 |
with gradio.Row():
|
196 |
+
input_image = gradio.Image(type="pil", source=source)
|
197 |
output_image = gradio.Image(type="numpy", label="Output")
|
198 |
with gradio.Row():
|
199 |
update_btn = gradio.Button("Update Anonymization").style(full_width=True)
|