Rahatara commited on
Commit
71cc033
·
verified ·
1 Parent(s): d9f5de2

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
- with gr.Blocks() as demo:
23
- gr.Image()
24
-
25
- demo.launch()
26
 
27
  if __name__ == "__main__":
28
  demo.launch()
 
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()],
24
+ outputs=gr.Image(),
25
+ title="Sepia Tone Generator")
26
 
27
  if __name__ == "__main__":
28
  demo.launch()