ehristoforu commited on
Commit
29f9a3b
1 Parent(s): 4fc28e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -80,6 +80,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
80
 
81
  @spaces.GPU(enable_queue=True)
82
  def generate(
 
83
  prompt: str,
84
  negative_prompt: str = "",
85
  use_negative_prompt: bool = False,
@@ -88,7 +89,6 @@ def generate(
88
  height: int = 1024,
89
  guidance_scale: float = 3,
90
  randomize_seed: bool = False,
91
- model,
92
  progress=gr.Progress(track_tqdm=True),
93
  ):
94
 
@@ -176,9 +176,9 @@ with gr.Blocks(title="Fluently Playground", css=css) as demo:
176
  with gr.Row():
177
  model = gr.Radio(
178
  label="Model",
179
- choices=["Fluently XL v1","Fluently v3.5", "Fluently Anime", "Fluently Epic"],
180
  value="Fluently v3.5",
181
- interactive=True
182
  )
183
  with gr.Group():
184
  with gr.Row():
@@ -257,6 +257,7 @@ with gr.Blocks(title="Fluently Playground", css=css) as demo:
257
  ],
258
  fn=generate,
259
  inputs=[
 
260
  prompt,
261
  negative_prompt,
262
  use_negative_prompt,
@@ -265,7 +266,6 @@ with gr.Blocks(title="Fluently Playground", css=css) as demo:
265
  height,
266
  guidance_scale,
267
  randomize_seed,
268
- model,
269
  ],
270
  outputs=[result, seed],
271
  api_name="run",
 
80
 
81
  @spaces.GPU(enable_queue=True)
82
  def generate(
83
+ model,
84
  prompt: str,
85
  negative_prompt: str = "",
86
  use_negative_prompt: bool = False,
 
89
  height: int = 1024,
90
  guidance_scale: float = 3,
91
  randomize_seed: bool = False,
 
92
  progress=gr.Progress(track_tqdm=True),
93
  ):
94
 
 
176
  with gr.Row():
177
  model = gr.Radio(
178
  label="Model",
179
+ choices=["Fluently XL v1", "Fluently v3.5", "Fluently Anime", "Fluently Epic"],
180
  value="Fluently v3.5",
181
+ interactive=True,
182
  )
183
  with gr.Group():
184
  with gr.Row():
 
257
  ],
258
  fn=generate,
259
  inputs=[
260
+ model,
261
  prompt,
262
  negative_prompt,
263
  use_negative_prompt,
 
266
  height,
267
  guidance_scale,
268
  randomize_seed,
 
269
  ],
270
  outputs=[result, seed],
271
  api_name="run",