panelforge commited on
Commit
f54a073
·
verified ·
1 Parent(s): 0bdc11a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +45 -46
app.py CHANGED
@@ -32,7 +32,6 @@ def load_tags(active_tab):
32
 
33
  return tags_module
34
 
35
- @gradio.Interface
36
  def infer(
37
  prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps,
38
  selected_participant_tags, selected_tribe_tags, selected_role_tags, selected_skin_tone_tags, selected_body_type_tags,
@@ -125,59 +124,59 @@ with gr.Blocks(css=css) as demo:
125
 
126
  # Straight Tab
127
  with gr.TabItem("Straight"):
128
- selected_participant_tags = gr.CheckboxGroup(choices=list(participant_tags.keys()), label="Participant Tags")
129
- selected_tribe_tags = gr.CheckboxGroup(choices=list(tribe_tags.keys()), label="Tribe Tags")
130
- selected_role_tags = gr.CheckboxGroup(choices=list(role_tags.keys()), label="Role Tags")
131
- selected_skin_tone_tags = gr.CheckboxGroup(choices=list(skin_tone_tags.keys()), label="Skin Tone Tags")
132
- selected_body_type_tags = gr.CheckboxGroup(choices=list(body_type_tags.keys()), label="Body Type Tags")
133
- selected_tattoo_tags = gr.CheckboxGroup(choices=list(tattoo_tags.keys()), label="Tattoo Tags")
134
- selected_piercing_tags = gr.CheckboxGroup(choices=list(piercing_tags.keys()), label="Piercing Tags")
135
- selected_expression_tags = gr.CheckboxGroup(choices=list(expression_tags.keys()), label="Expression Tags")
136
- selected_eye_tags = gr.CheckboxGroup(choices=list(eye_tags.keys()), label="Eye Tags")
137
- selected_hair_style_tags = gr.CheckboxGroup(choices=list(hair_style_tags.keys()), label="Hair Style Tags")
138
- selected_position_tags = gr.CheckboxGroup(choices=list(position_tags.keys()), label="Position Tags")
139
- selected_fetish_tags = gr.CheckboxGroup(choices=list(fetish_tags.keys()), label="Fetish Tags")
140
- selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
141
- selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
142
- selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
143
  tabs.select(lambda: "Straight", inputs=None, outputs=active_tab)
144
 
145
  # Gay Tab
146
  with gr.TabItem("Gay"):
147
- selected_participant_tags = gr.CheckboxGroup(choices=list(participant_tags.keys()), label="Participant Tags")
148
- selected_tribe_tags = gr.CheckboxGroup(choices=list(tribe_tags.keys()), label="Tribe Tags")
149
- selected_role_tags = gr.CheckboxGroup(choices=list(role_tags.keys()), label="Role Tags")
150
- selected_skin_tone_tags = gr.CheckboxGroup(choices=list(skin_tone_tags.keys()), label="Skin Tone Tags")
151
- selected_body_type_tags = gr.CheckboxGroup(choices=list(body_type_tags.keys()), label="Body Type Tags")
152
- selected_tattoo_tags = gr.CheckboxGroup(choices=list(tattoo_tags.keys()), label="Tattoo Tags")
153
- selected_piercing_tags = gr.CheckboxGroup(choices=list(piercing_tags.keys()), label="Piercing Tags")
154
- selected_expression_tags = gr.CheckboxGroup(choices=list(expression_tags.keys()), label="Expression Tags")
155
- selected_eye_tags = gr.CheckboxGroup(choices=list(eye_tags.keys()), label="Eye Tags")
156
- selected_hair_style_tags = gr.CheckboxGroup(choices=list(hair_style_tags.keys()), label="Hair Style Tags")
157
- selected_position_tags = gr.CheckboxGroup(choices=list(position_tags.keys()), label="Position Tags")
158
- selected_fetish_tags = gr.CheckboxGroup(choices=list(fetish_tags.keys()), label="Fetish Tags")
159
- selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
160
- selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
161
- selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
162
  tabs.select(lambda: "Gay", inputs=None, outputs=active_tab)
163
 
164
  # Lesbian Tab
165
  with gr.TabItem("Lesbian"):
166
- selected_participant_tags = gr.CheckboxGroup(choices=list(participant_tags.keys()), label="Participant Tags")
167
- selected_tribe_tags = gr.CheckboxGroup(choices=list(tribe_tags.keys()), label="Tribe Tags")
168
- selected_role_tags = gr.CheckboxGroup(choices=list(role_tags.keys()), label="Role Tags")
169
- selected_skin_tone_tags = gr.CheckboxGroup(choices=list(skin_tone_tags.keys()), label="Skin Tone Tags")
170
- selected_body_type_tags = gr.CheckboxGroup(choices=list(body_type_tags.keys()), label="Body Type Tags")
171
- selected_tattoo_tags = gr.CheckboxGroup(choices=list(tattoo_tags.keys()), label="Tattoo Tags")
172
- selected_piercing_tags = gr.CheckboxGroup(choices=list(piercing_tags.keys()), label="Piercing Tags")
173
- selected_expression_tags = gr.CheckboxGroup(choices=list(expression_tags.keys()), label="Expression Tags")
174
- selected_eye_tags = gr.CheckboxGroup(choices=list(eye_tags.keys()), label="Eye Tags")
175
- selected_hair_style_tags = gr.CheckboxGroup(choices=list(hair_style_tags.keys()), label="Hair Style Tags")
176
- selected_position_tags = gr.CheckboxGroup(choices=list(position_tags.keys()), label="Position Tags")
177
- selected_fetish_tags = gr.CheckboxGroup(choices=list(fetish_tags.keys()), label="Fetish Tags")
178
- selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
179
- selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
180
- selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
181
  tabs.select(lambda: "Lesbian", inputs=None, outputs=active_tab)
182
 
183
  # Advanced Settings
 
32
 
33
  return tags_module
34
 
 
35
  def infer(
36
  prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps,
37
  selected_participant_tags, selected_tribe_tags, selected_role_tags, selected_skin_tone_tags, selected_body_type_tags,
 
124
 
125
  # Straight Tab
126
  with gr.TabItem("Straight"):
127
+ selected_participant_tags = gr.CheckboxGroup(choices=[], label="Participant Tags")
128
+ selected_tribe_tags = gr.CheckboxGroup(choices=[], label="Tribe Tags")
129
+ selected_role_tags = gr.CheckboxGroup(choices=[], label="Role Tags")
130
+ selected_skin_tone_tags = gr.CheckboxGroup(choices=[], label="Skin Tone Tags")
131
+ selected_body_type_tags = gr.CheckboxGroup(choices=[], label="Body Type Tags")
132
+ selected_tattoo_tags = gr.CheckboxGroup(choices=[], label="Tattoo Tags")
133
+ selected_piercing_tags = gr.CheckboxGroup(choices=[], label="Piercing Tags")
134
+ selected_expression_tags = gr.CheckboxGroup(choices=[], label="Expression Tags")
135
+ selected_eye_tags = gr.CheckboxGroup(choices=[], label="Eye Tags")
136
+ selected_hair_style_tags = gr.CheckboxGroup(choices=[], label="Hair Style Tags")
137
+ selected_position_tags = gr.CheckboxGroup(choices=[], label="Position Tags")
138
+ selected_fetish_tags = gr.CheckboxGroup(choices=[], label="Fetish Tags")
139
+ selected_location_tags = gr.CheckboxGroup(choices=[], label="Location Tags")
140
+ selected_camera_tags = gr.CheckboxGroup(choices=[], label="Camera Tags")
141
+ selected_atmosphere_tags = gr.CheckboxGroup(choices=[], label="Atmosphere Tags")
142
  tabs.select(lambda: "Straight", inputs=None, outputs=active_tab)
143
 
144
  # Gay Tab
145
  with gr.TabItem("Gay"):
146
+ selected_participant_tags = gr.CheckboxGroup(choices=[], label="Participant Tags")
147
+ selected_tribe_tags = gr.CheckboxGroup(choices=[], label="Tribe Tags")
148
+ selected_role_tags = gr.CheckboxGroup(choices=[], label="Role Tags")
149
+ selected_skin_tone_tags = gr.CheckboxGroup(choices=[], label="Skin Tone Tags")
150
+ selected_body_type_tags = gr.CheckboxGroup(choices=[], label="Body Type Tags")
151
+ selected_tattoo_tags = gr.CheckboxGroup(choices=[], label="Tattoo Tags")
152
+ selected_piercing_tags = gr.CheckboxGroup(choices=[], label="Piercing Tags")
153
+ selected_expression_tags = gr.CheckboxGroup(choices=[], label="Expression Tags")
154
+ selected_eye_tags = gr.CheckboxGroup(choices=[], label="Eye Tags")
155
+ selected_hair_style_tags = gr.CheckboxGroup(choices=[], label="Hair Style Tags")
156
+ selected_position_tags = gr.CheckboxGroup(choices=[], label="Position Tags")
157
+ selected_fetish_tags = gr.CheckboxGroup(choices=[], label="Fetish Tags")
158
+ selected_location_tags = gr.CheckboxGroup(choices=[], label="Location Tags")
159
+ selected_camera_tags = gr.CheckboxGroup(choices=[], label="Camera Tags")
160
+ selected_atmosphere_tags = gr.CheckboxGroup(choices=[], label="Atmosphere Tags")
161
  tabs.select(lambda: "Gay", inputs=None, outputs=active_tab)
162
 
163
  # Lesbian Tab
164
  with gr.TabItem("Lesbian"):
165
+ selected_participant_tags = gr.CheckboxGroup(choices=[], label="Participant Tags")
166
+ selected_tribe_tags = gr.CheckboxGroup(choices=[], label="Tribe Tags")
167
+ selected_role_tags = gr.CheckboxGroup(choices=[], label="Role Tags")
168
+ selected_skin_tone_tags = gr.CheckboxGroup(choices=[], label="Skin Tone Tags")
169
+ selected_body_type_tags = gr.CheckboxGroup(choices=[], label="Body Type Tags")
170
+ selected_tattoo_tags = gr.CheckboxGroup(choices=[], label="Tattoo Tags")
171
+ selected_piercing_tags = gr.CheckboxGroup(choices=[], label="Piercing Tags")
172
+ selected_expression_tags = gr.CheckboxGroup(choices=[], label="Expression Tags")
173
+ selected_eye_tags = gr.CheckboxGroup(choices=[], label="Eye Tags")
174
+ selected_hair_style_tags = gr.CheckboxGroup(choices=[], label="Hair Style Tags")
175
+ selected_position_tags = gr.CheckboxGroup(choices=[], label="Position Tags")
176
+ selected_fetish_tags = gr.CheckboxGroup(choices=[], label="Fetish Tags")
177
+ selected_location_tags = gr.CheckboxGroup(choices=[], label="Location Tags")
178
+ selected_camera_tags = gr.CheckboxGroup(choices=[], label="Camera Tags")
179
+ selected_atmosphere_tags = gr.CheckboxGroup(choices=[], label="Atmosphere Tags")
180
  tabs.select(lambda: "Lesbian", inputs=None, outputs=active_tab)
181
 
182
  # Advanced Settings