JustKiddo commited on
Commit
4898f6d
·
verified ·
1 Parent(s): b29dc05

Attempted to live streaming the input.

Browse files
Files changed (1) hide show
  1. app.py +8 -3
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
- inputs=gr.Image(),
45
- outputs=[output_img, sepia_values_text],
46
- show_progress="full")
 
 
 
 
 
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,