Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import numpy as np
|
3 |
import time
|
4 |
|
5 |
-
def fake_diffusion(
|
6 |
for i in range(steps):
|
7 |
time.sleep(1)
|
8 |
image = np.random.random((600, 600, 3))
|
@@ -12,7 +12,7 @@ def fake_diffusion(text, steps):
|
|
12 |
yield image
|
13 |
|
14 |
|
15 |
-
demo = gr.Interface(fake_diffusion, inputs=[gr.
|
16 |
|
17 |
if __name__ == "__main__":
|
18 |
demo.launch()
|
|
|
2 |
import numpy as np
|
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))
|
|
|
12 |
yield image
|
13 |
|
14 |
|
15 |
+
demo = gr.Interface(fake_diffusion, inputs=[gr.Image(=type="filepath"), gr.Slider(1, 10, 3)], outputs="image")
|
16 |
|
17 |
if __name__ == "__main__":
|
18 |
demo.launch()
|