Falln87 commited on
Commit
766b2ba
1 Parent(s): 2395926

Update app.py

Browse files

line 19 + seed
line 102 + api_name
line 103 +seed

Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -16,7 +16,7 @@ def infer(prompt, seed, randomize_seed, width, height, guidance_scale, num_infer
16
  api_name="/infer"
17
  )
18
 
19
- return result
20
 
21
 
22
  css="""
@@ -31,7 +31,7 @@ with gr.Blocks(css=css) as demo:
31
 
32
  with gr.Column(elem_id="col-container"):
33
  gr.Markdown(f"""
34
- #DiffusionLab Beta
35
  """)
36
 
37
  with gr.Row():
@@ -99,8 +99,8 @@ with gr.Blocks(css=css) as demo:
99
 
100
  run_button.click(
101
  fn = infer,
102
- inputs = [prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
103
- outputs = [result]
104
  )
105
 
106
  demo.queue().launch()
 
16
  api_name="/infer"
17
  )
18
 
19
+ return result seed
20
 
21
 
22
  css="""
 
31
 
32
  with gr.Column(elem_id="col-container"):
33
  gr.Markdown(f"""
34
+ FallnAI: DiffusionLab Beta
35
  """)
36
 
37
  with gr.Row():
 
99
 
100
  run_button.click(
101
  fn = infer,
102
+ inputs = [prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps,api_name],
103
+ outputs = [result, seed]
104
  )
105
 
106
  demo.queue().launch()