linoyts HF staff commited on
Commit
77249a2
·
verified ·
1 Parent(s): d157778

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,10 +7,10 @@ def fake_diffusion(input_img, steps):
7
  # time.sleep(1)
8
  # image = np.random.random((600, 600, 3))
9
  # yield image
10
- # image = np.ones((1000,1000,3), np.uint8)
11
- # image[:] = [255, 124, 0]
12
  # yield input_img
13
- return input_img
14
 
15
 
16
  demo = gr.Interface(fake_diffusion, inputs=[gr.Image(type="filepath"), gr.Slider(1, 10, 3)], outputs="image")
 
7
  # time.sleep(1)
8
  # image = np.random.random((600, 600, 3))
9
  # yield image
10
+ image = np.ones((1000,1000,3), np.uint8)
11
+ image[:] = [255, 124, 0]
12
  # yield input_img
13
+ return image
14
 
15
 
16
  demo = gr.Interface(fake_diffusion, inputs=[gr.Image(type="filepath"), gr.Slider(1, 10, 3)], outputs="image")