tokeron commited on
Commit
5db3da7
1 Parent(s): 5971725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -52,14 +52,13 @@ If you have any questions, please feel free to open an issue or directly reach u
52
 
53
 
54
 
55
-
56
  model_num_of_layers = {
57
  'Stable Diffusion 1.4': 12,
58
  'Stable Diffusion 2.1': 22,
59
  }
60
 
61
- def run_for_examples(prompt, model, seed, skip):
62
- return generate_images(prompt, model, seed, skip);
63
 
64
 
65
  def generate_images(prompt, model, seed, skip):
@@ -148,6 +147,7 @@ with gr.Blocks() as demo:
148
  show_api=False,
149
  trigger_mode="always_last",
150
  )
 
151
  examples = [
152
  [
153
  "A photo of an Aye-aye.",
@@ -172,7 +172,7 @@ with gr.Blocks() as demo:
172
  gr.Examples(
173
  examples=examples,
174
  inputs = [prompt, model, seed, skip],
175
- fn=run_for_examples,
176
  outputs=[gallery],
177
  cache_examples=True,
178
  )
 
52
 
53
 
54
 
 
55
  model_num_of_layers = {
56
  'Stable Diffusion 1.4': 12,
57
  'Stable Diffusion 2.1': 22,
58
  }
59
 
60
+ # def run_for_examples(prompt, model, seed, skip):
61
+ # return generate_images(prompt, model, seed, skip);
62
 
63
 
64
  def generate_images(prompt, model, seed, skip):
 
147
  show_api=False,
148
  trigger_mode="always_last",
149
  )
150
+
151
  examples = [
152
  [
153
  "A photo of an Aye-aye.",
 
172
  gr.Examples(
173
  examples=examples,
174
  inputs = [prompt, model, seed, skip],
175
+ fn=generate_images,
176
  outputs=[gallery],
177
  cache_examples=True,
178
  )