Spaces:
Running
Running
Commit
•
f4478ff
1
Parent(s):
630125e
Upload app.py
Browse files
app.py
CHANGED
@@ -451,21 +451,21 @@ def find_similar_artists(new_tags_string, top_n, similarity_weight, allow_nsfw_t
|
|
451 |
|
452 |
with gr.Blocks() as app:
|
453 |
with gr.Group():
|
454 |
-
with gr.
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
similarity_weight = gr.Slider(minimum=0, maximum=1, value=0.5, step=0.1, label="Similarity weight")
|
460 |
-
allow_nsfw = gr.Checkbox(label="Allow NSFW Tags", value=False)
|
461 |
-
with gr.Column(scale=1):
|
462 |
-
unseen_tags = gr.HTML(label="Unseen Tags")
|
463 |
-
|
464 |
-
with gr.Row():
|
465 |
-
with gr.Column(scale=1):
|
466 |
num_artists = gr.Slider(minimum=1, maximum=100, value=10, step=1, label="Number of artists")
|
|
|
|
|
|
|
467 |
top_artists = gr.Textbox(label="Top Artists", info="These are the artists most strongly associated with your tags. The number in parentheses is a similarity score between 0 and 1, with higher numbers indicating greater similarity.")
|
|
|
468 |
dynamic_prompts = gr.Textbox(label="Dynamic Prompts Format", info="For if you're using the Automatic1111 webui (https://github.com/AUTOMATIC1111/stable-diffusion-webui) with the Dynamic Prompts extension activated (https://github.com/adieyal/sd-dynamic-prompts) and want to try them all individually.")
|
|
|
|
|
|
|
469 |
styles = gr.Gallery(label="Styles", allow_preview=True, preview=True, container=True)
|
470 |
|
471 |
|
|
|
451 |
|
452 |
with gr.Blocks() as app:
|
453 |
with gr.Group():
|
454 |
+
with gr.Row():
|
455 |
+
image_tags = gr.Textbox(label="Enter image tags", placeholder="e.g. fox, outside, detailed background, ...")
|
456 |
+
with gr.Row():
|
457 |
+
submit_button = gr.Button("Submit")
|
458 |
+
similarity_weight = gr.Slider(minimum=0, maximum=1, value=0.5, step=0.1, label="Similarity weight")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
num_artists = gr.Slider(minimum=1, maximum=100, value=10, step=1, label="Number of artists")
|
460 |
+
allow_nsfw = gr.Checkbox(label="Allow NSFW Tags", value=False)
|
461 |
+
with gr.Row():
|
462 |
+
with gr.Column():
|
463 |
top_artists = gr.Textbox(label="Top Artists", info="These are the artists most strongly associated with your tags. The number in parentheses is a similarity score between 0 and 1, with higher numbers indicating greater similarity.")
|
464 |
+
with gr.Column():
|
465 |
dynamic_prompts = gr.Textbox(label="Dynamic Prompts Format", info="For if you're using the Automatic1111 webui (https://github.com/AUTOMATIC1111/stable-diffusion-webui) with the Dynamic Prompts extension activated (https://github.com/adieyal/sd-dynamic-prompts) and want to try them all individually.")
|
466 |
+
with gr.Row():
|
467 |
+
unseen_tags = gr.HTML(label="Unseen Tags")
|
468 |
+
with gr.Row():
|
469 |
styles = gr.Gallery(label="Styles", allow_preview=True, preview=True, container=True)
|
470 |
|
471 |
|