DazDin commited on
Commit
fb6db4d
·
verified ·
1 Parent(s): c30b323
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -2,7 +2,9 @@ import gradio as gr
2
  import time
3
 
4
  models =[
 
5
  "pimpilikipilapi1/NSFW_master",
 
6
  "DiegoJR1973/NSFW-TrioHMH-Flux",
7
  "prashanth970/flux-lora-uncensored",
8
  "black-forest-labs/FLUX.1-dev",
@@ -34,7 +36,6 @@ def clear_it(val):
34
  val = 0
35
  else:
36
  val = 0
37
- pass
38
  return val
39
 
40
  def all_task_end(cnt,t_stamp):
@@ -49,7 +50,6 @@ def all_task_end(cnt,t_stamp):
49
  else:
50
  d = gr.update(value=0)
51
  tog = gr.update(value=0)
52
- pass
53
  return d, tog
54
 
55
  def all_task_start():
@@ -81,10 +81,7 @@ with gr.Blocks(title="SD Models") as my_interface:
81
  with gr.Column(scale=3, min_width=200):
82
  with gr.Box():
83
  sd_outputs[model_idx] = gr.Image(label=model_path)
84
- pass
85
  model_idx += 1
86
- pass
87
- pass
88
 
89
  with gr.Row(visible=False):
90
  start_box=gr.Number(interactive=False)
@@ -105,8 +102,6 @@ with gr.Blocks(title="SD Models") as my_interface:
105
  for model_path in models:
106
  runs_dict[model_idx] = run.click(model_functions[model_idx], inputs=[primary_prompt], outputs=[sd_outputs[model_idx]])
107
  model_idx += 1
108
- pass
109
- pass
110
 
111
  clear_btn.click(
112
  clear_fn,
 
2
  import time
3
 
4
  models =[
5
+ "Keltezaa/NSFW_MASTER_FLUX",
6
  "pimpilikipilapi1/NSFW_master",
7
+ "Keltezaa/Fingering",
8
  "DiegoJR1973/NSFW-TrioHMH-Flux",
9
  "prashanth970/flux-lora-uncensored",
10
  "black-forest-labs/FLUX.1-dev",
 
36
  val = 0
37
  else:
38
  val = 0
 
39
  return val
40
 
41
  def all_task_end(cnt,t_stamp):
 
50
  else:
51
  d = gr.update(value=0)
52
  tog = gr.update(value=0)
 
53
  return d, tog
54
 
55
  def all_task_start():
 
81
  with gr.Column(scale=3, min_width=200):
82
  with gr.Box():
83
  sd_outputs[model_idx] = gr.Image(label=model_path)
 
84
  model_idx += 1
 
 
85
 
86
  with gr.Row(visible=False):
87
  start_box=gr.Number(interactive=False)
 
102
  for model_path in models:
103
  runs_dict[model_idx] = run.click(model_functions[model_idx], inputs=[primary_prompt], outputs=[sd_outputs[model_idx]])
104
  model_idx += 1
 
 
105
 
106
  clear_btn.click(
107
  clear_fn,