aliabd HF staff commited on
Commit
da8154e
1 Parent(s): 7af001b

Upload with huggingface_hub

Browse files
Files changed (3) hide show
  1. DESCRIPTION.md +1 -0
  2. README.md +1 -1
  3. app.py +0 -5
DESCRIPTION.md ADDED
@@ -0,0 +1 @@
 
 
1
+ This demo uses a fake model to showcase iterative output. The Image output will update every time a generator is returned until the final image.
README.md CHANGED
@@ -1,7 +1,7 @@
1
 
2
  ---
3
  title: fake_diffusion
4
- emoji: 🤗
5
  colorFrom: indigo
6
  colorTo: indigo
7
  sdk: gradio
 
1
 
2
  ---
3
  title: fake_diffusion
4
+ emoji: 🔥
5
  colorFrom: indigo
6
  colorTo: indigo
7
  sdk: gradio
app.py CHANGED
@@ -1,6 +1,3 @@
1
- # URL: https://huggingface.co/spaces/gradio/fake_diffusion
2
- # DESCRIPTION: This demo uses a fake model to showcase iterative output. The Image output will update every time a generator is returned until the final image.
3
- # imports
4
  import gradio as gr
5
  import numpy as np
6
  import time
@@ -15,7 +12,6 @@ def fake_diffusion(steps):
15
  image = "https://i.picsum.photos/id/867/600/600.jpg?hmac=qE7QFJwLmlE_WKI7zMH6SgH5iY5fx8ec6ZJQBwKRT44"
16
  yield image
17
 
18
- # define Interface
19
  demo = gr.Interface(fake_diffusion,
20
  inputs=gr.Slider(1, 10, 3),
21
  outputs="image")
@@ -23,5 +19,4 @@ demo = gr.Interface(fake_diffusion,
23
  # define queue - required for generators
24
  demo.queue()
25
 
26
- # launch
27
  demo.launch()
 
 
 
 
1
  import gradio as gr
2
  import numpy as np
3
  import time
 
12
  image = "https://i.picsum.photos/id/867/600/600.jpg?hmac=qE7QFJwLmlE_WKI7zMH6SgH5iY5fx8ec6ZJQBwKRT44"
13
  yield image
14
 
 
15
  demo = gr.Interface(fake_diffusion,
16
  inputs=gr.Slider(1, 10, 3),
17
  outputs="image")
 
19
  # define queue - required for generators
20
  demo.queue()
21
 
 
22
  demo.launch()