Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,14 @@ import numpy as np
|
|
3 |
import time
|
4 |
|
5 |
def fake_diffusion(input_img, steps):
|
6 |
-
for i in range(steps):
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
image = np.ones((1000,1000,3), np.uint8)
|
11 |
-
image[:] = [255, 124, 0]
|
12 |
-
yield input_img
|
|
|
13 |
|
14 |
|
15 |
demo = gr.Interface(fake_diffusion, inputs=[gr.Image(type="filepath"), gr.Slider(1, 10, 3)], outputs="image")
|
|
|
3 |
import time
|
4 |
|
5 |
def fake_diffusion(input_img, steps):
|
6 |
+
# for i in range(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")
|