Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ with gr.Blocks(css=css) as demo:
|
|
176 |
selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
|
177 |
selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
|
178 |
selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
|
179 |
-
|
180 |
|
181 |
|
182 |
with gr.TabItem("Gay") as gay_tag_tab:
|
@@ -195,7 +195,7 @@ with gr.Blocks(css=css) as demo:
|
|
195 |
selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
|
196 |
selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
|
197 |
selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
|
198 |
-
|
199 |
|
200 |
with gr.TabItem("Lesbian") as lesbian_tag_tab:
|
201 |
# Tag selection checkboxes for each tag group
|
@@ -213,7 +213,7 @@ with gr.Blocks(css=css) as demo:
|
|
213 |
selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
|
214 |
selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
|
215 |
selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
|
216 |
-
|
217 |
|
218 |
# Full-width "Run" button
|
219 |
run_button = gr.Button("Run", scale=0, elem_id="run-button")
|
|
|
176 |
selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
|
177 |
selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
|
178 |
selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
|
179 |
+
straight_tag_tab.select(lambda: "Straight", inputs=None, outputs=active_tab)
|
180 |
|
181 |
|
182 |
with gr.TabItem("Gay") as gay_tag_tab:
|
|
|
195 |
selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
|
196 |
selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
|
197 |
selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
|
198 |
+
gay_tag_tab.select(lambda: "Gay", inputs=None, outputs=active_tab)
|
199 |
|
200 |
with gr.TabItem("Lesbian") as lesbian_tag_tab:
|
201 |
# Tag selection checkboxes for each tag group
|
|
|
213 |
selected_location_tags = gr.CheckboxGroup(choices=list(location_tags.keys()), label="Location Tags")
|
214 |
selected_camera_tags = gr.CheckboxGroup(choices=list(camera_tags.keys()), label="Camera Tags")
|
215 |
selected_atmosphere_tags = gr.CheckboxGroup(choices=list(atmosphere_tags.keys()), label="Atmosphere Tags")
|
216 |
+
lesbian_tag_tab.select(lambda: "Lesbian", inputs=None, outputs=active_tab)
|
217 |
|
218 |
# Full-width "Run" button
|
219 |
run_button = gr.Button("Run", scale=0, elem_id="run-button")
|