Spaces:
Sleeping
Sleeping
Attempted to live streaming the input.
Browse files
app.py
CHANGED
|
@@ -41,9 +41,14 @@ with gr.Blocks() as generated_output:
|
|
| 41 |
sepia_values_text=gr.Textbox(label="Sepia Values")
|
| 42 |
output_img = gr.Image(label="Output Image")
|
| 43 |
gr.Interface(fn=sepia,
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
with gr.Row():
|
| 48 |
output_img.change(
|
| 49 |
fn=process_image,
|
|
|
|
| 41 |
sepia_values_text=gr.Textbox(label="Sepia Values")
|
| 42 |
output_img = gr.Image(label="Output Image")
|
| 43 |
gr.Interface(fn=sepia,
|
| 44 |
+
inputs=gr.Image(
|
| 45 |
+
#this makes the camera stream live
|
| 46 |
+
sources=["webcam"],
|
| 47 |
+
streaming=True
|
| 48 |
+
),
|
| 49 |
+
outputs=[output_img, sepia_values_text],
|
| 50 |
+
live=True,
|
| 51 |
+
show_progress="full")
|
| 52 |
with gr.Row():
|
| 53 |
output_img.change(
|
| 54 |
fn=process_image,
|