lichorosario commited on
Commit
f41b10b
·
verified ·
1 Parent(s): 1cb81dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -18,19 +18,19 @@ def infer (prompt, inf_steps, guidance_scale, width, height, seed, lora_weight):
18
  api_name="/load_model"
19
  )
20
 
21
- client = Client("fffiloni/sd-xl-custom-model")
22
- result = client.predict(
23
- custom_model=custom_model,
24
- weight_name=weight_name,
25
- prompt="dott style. "+prompt,
26
- inf_steps=inf_steps,
27
- guidance_scale=guidance_scale,
28
- width=width,
29
- height=height,
30
- seed=-seed,
31
- lora_weight=lora_weight,
32
- api_name="/infer"
33
- )
34
 
35
  return result
36
 
@@ -138,7 +138,7 @@ with gr.Blocks(css=css) as demo:
138
  submit_btn.click(
139
  fn = infer,
140
  inputs = [prompt_in, inf_steps, guidance_scale, width, height, seed, lora_weight],
141
- outputs = [image_out, last_used_seed]
142
  )
143
 
144
 
 
18
  api_name="/load_model"
19
  )
20
 
21
+ # client = Client("fffiloni/sd-xl-custom-model")
22
+ # result = client.predict(
23
+ # custom_model=custom_model,
24
+ # weight_name=weight_name,
25
+ # prompt="dott style. "+prompt,
26
+ # inf_steps=inf_steps,
27
+ # guidance_scale=guidance_scale,
28
+ # width=width,
29
+ # height=height,
30
+ # seed=-seed,
31
+ # lora_weight=lora_weight,
32
+ # api_name="/infer"
33
+ # )
34
 
35
  return result
36
 
 
138
  submit_btn.click(
139
  fn = infer,
140
  inputs = [prompt_in, inf_steps, guidance_scale, width, height, seed, lora_weight],
141
+ outputs = [last_used_seed]
142
  )
143
 
144