Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
92c7c82
1
Parent(s):
92442fe
Update app.py
Browse files
app.py
CHANGED
@@ -61,6 +61,7 @@ div#share-btn-container > div {flex-direction: row;background: black;align-items
|
|
61 |
#share-btn-container div:nth-child(-n+2){width: auto !important;min-height: 0px !important;}
|
62 |
#share-btn-container .wrap {display: none !important}
|
63 |
#share-btn-container.hidden {display: none!important}
|
|
|
64 |
'''
|
65 |
|
66 |
original_pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16)
|
@@ -118,12 +119,12 @@ with gr.Blocks(css=css) as demo:
|
|
118 |
with gr.Column(min_width=10, scale=16, elem_classes="plus_column"):
|
119 |
with gr.Row():
|
120 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
121 |
-
lora_1 = gr.Image(interactive=False, height=150, elem_classes="selected_random", show_share_button=False, show_download_button=False)
|
122 |
lora_1_prompt = gr.Markdown(visible=False)
|
123 |
with gr.Column(min_width=10, scale=1, elem_classes="plus_column"):
|
124 |
plus = gr.HTML("+", elem_classes="plus_button")
|
125 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
126 |
-
lora_2 = gr.Image(interactive=False, height=150, elem_classes="selected_random", show_share_button=False, show_download_button=False)
|
127 |
lora_2_prompt = gr.Markdown(visible=False)
|
128 |
with gr.Column(min_width=10, scale=2, elem_classes="plus_column"):
|
129 |
equal = gr.HTML("=", elem_classes="plus_button")
|
@@ -133,7 +134,7 @@ with gr.Blocks(css=css) as demo:
|
|
133 |
prompt = gr.Textbox(label="Your prompt", info="Rearrange the trigger words into a coherent prompt", show_label=False, interactive=True, elem_id="prompt")
|
134 |
run_btn = gr.Button("Run", elem_id="run_button")
|
135 |
output_image = gr.Image(label="Output", height=355)
|
136 |
-
with gr.Row(visible=False) as post_gen_info:
|
137 |
with gr.Column(min_width=10):
|
138 |
thumbs_up = gr.Button("👍")
|
139 |
with gr.Column(min_width=10):
|
|
|
61 |
#share-btn-container div:nth-child(-n+2){width: auto !important;min-height: 0px !important;}
|
62 |
#share-btn-container .wrap {display: none !important}
|
63 |
#share-btn-container.hidden {display: none!important}
|
64 |
+
#post_gen_info{margin-top: .5em}
|
65 |
'''
|
66 |
|
67 |
original_pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16)
|
|
|
119 |
with gr.Column(min_width=10, scale=16, elem_classes="plus_column"):
|
120 |
with gr.Row():
|
121 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
122 |
+
lora_1 = gr.Image(interactive=False, height=150, elem_classes="selected_random", elem_id="randomLoRA_1", show_share_button=False, show_download_button=False)
|
123 |
lora_1_prompt = gr.Markdown(visible=False)
|
124 |
with gr.Column(min_width=10, scale=1, elem_classes="plus_column"):
|
125 |
plus = gr.HTML("+", elem_classes="plus_button")
|
126 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
127 |
+
lora_2 = gr.Image(interactive=False, height=150, elem_classes="selected_random", elem_id="randomLoRA_2", show_share_button=False, show_download_button=False)
|
128 |
lora_2_prompt = gr.Markdown(visible=False)
|
129 |
with gr.Column(min_width=10, scale=2, elem_classes="plus_column"):
|
130 |
equal = gr.HTML("=", elem_classes="plus_button")
|
|
|
134 |
prompt = gr.Textbox(label="Your prompt", info="Rearrange the trigger words into a coherent prompt", show_label=False, interactive=True, elem_id="prompt")
|
135 |
run_btn = gr.Button("Run", elem_id="run_button")
|
136 |
output_image = gr.Image(label="Output", height=355)
|
137 |
+
with gr.Row(visible=False, elem_id="post_gen_info") as post_gen_info:
|
138 |
with gr.Column(min_width=10):
|
139 |
thumbs_up = gr.Button("👍")
|
140 |
with gr.Column(min_width=10):
|