Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -100,25 +100,8 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
|
|
100 |
recom_prompt_preset.change(set_recom_prompt_preset, [recom_prompt_preset],
|
101 |
[positive_prefix, positive_suffix, negative_prefix, negative_suffix], queue=False, show_api=False)
|
102 |
seed_rand.click(randomize_seed, None, [seed], queue=False, show_api=False)
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
random_prompt.click(
|
107 |
-
v2_random_prompt, [prompt, v2_series, v2_character, v2_rating, v2_aspect_ratio, v2_length,
|
108 |
-
v2_identity, v2_ban_tags, v2_model], [prompt, v2_series, v2_character], show_api=False,
|
109 |
-
).success(get_tag_type, [positive_prefix, positive_suffix, negative_prefix, negative_suffix], [v2_tag_type], queue=False, show_api=False
|
110 |
-
).success(convert_danbooru_to_e621_prompt, [prompt, v2_tag_type], [prompt], queue=False, show_api=False)
|
111 |
-
tagger_generate_from_image.click(lambda: ("", "", ""), None, [v2_series, v2_character, prompt], queue=False, show_api=False,
|
112 |
-
).success(
|
113 |
-
predict_tags_wd,
|
114 |
-
[tagger_image, prompt, tagger_algorithms, tagger_general_threshold, tagger_character_threshold],
|
115 |
-
[v2_series, v2_character, prompt, v2_copy],
|
116 |
-
show_api=False,
|
117 |
-
).success(predict_tags_fl2_sd3, [tagger_image, prompt, tagger_algorithms], [prompt], show_api=False,
|
118 |
-
).success(remove_specific_prompt, [prompt, tagger_keep_tags], [prompt], queue=False, show_api=False,
|
119 |
-
).success(convert_danbooru_to_e621_prompt, [prompt, tagger_tag_type], [prompt], queue=False, show_api=False,
|
120 |
-
).success(insert_recom_prompt, [prompt, neg_prompt, tagger_recom_prompt], [prompt, neg_prompt], queue=False, show_api=False,
|
121 |
-
).success(compose_prompt_to_copy, [v2_character, v2_series, prompt], [prompt], queue=False, show_api=False)
|
122 |
-
|
123 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
124 |
demo.launch(max_threads=400, ssr_mode=False)
|
|
|
100 |
recom_prompt_preset.change(set_recom_prompt_preset, [recom_prompt_preset],
|
101 |
[positive_prefix, positive_suffix, negative_prefix, negative_suffix], queue=False, show_api=False)
|
102 |
seed_rand.click(randomize_seed, None, [seed], queue=False, show_api=False)
|
103 |
+
|
104 |
+
|
105 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
107 |
demo.launch(max_threads=400, ssr_mode=False)
|