Rahatara commited on
Commit
d9f5de2
·
verified ·
1 Parent(s): 2749c38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,10 +19,10 @@ def sepia(input_img, num_copies):
19
  time.sleep(1)
20
  yield (sepia_img * 255).astype(np.uint8)
21
 
22
- demo = gr.Interface(fn=sepia,
23
- inputs=[gr.Image(), gr.Number(label="Number of Copies", default=1)],
24
- outputs=gr.Image(type="numpy", label="Sepia Image"),
25
- title="Sepia Tone Generator")
26
 
27
  if __name__ == "__main__":
28
  demo.launch()
 
19
  time.sleep(1)
20
  yield (sepia_img * 255).astype(np.uint8)
21
 
22
+ with gr.Blocks() as demo:
23
+ gr.Image()
24
+
25
+ demo.launch()
26
 
27
  if __name__ == "__main__":
28
  demo.launch()