Spaces:
Runtime error
Runtime error
Commit
•
b0fbf54
1
Parent(s):
fb4901e
Update app.py
Browse files
app.py
CHANGED
@@ -69,9 +69,9 @@ css = '''
|
|
69 |
.selected_random [data-testid="block-label"] span{display: none}
|
70 |
.plus_column{align-self: center}
|
71 |
.plus_button{font-size: 235% !important; text-align: center;margin-bottom: 19px}
|
|
|
72 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
73 |
-
#run_button{position:absolute;margin-top:
|
74 |
-
border-top-left-radius: 0px;}
|
75 |
.random_column{align-self: center; align-items: center;gap: 0.5em !important}
|
76 |
#share-btn-container{padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; max-width: 13rem; margin-left: auto;margin-top: 0.35em;}
|
77 |
div#share-btn-container > div {flex-direction: row;background: black;align-items: center}
|
@@ -84,7 +84,8 @@ div#share-btn-container > div {flex-direction: row;background: black;align-items
|
|
84 |
#post_gen_info{margin-top: .5em}
|
85 |
#thumbs_up_clicked{background:green}
|
86 |
#thumbs_down_clicked{background:red}
|
87 |
-
.title_lora a{color: var(--body-text-color) !important}
|
|
|
88 |
'''
|
89 |
|
90 |
|
@@ -201,8 +202,8 @@ with gr.Blocks(css=css) as demo:
|
|
201 |
with gr.Column(min_width=10, scale=2, elem_classes="plus_column"):
|
202 |
equal = gr.HTML("=", elem_classes="plus_button")
|
203 |
with gr.Column(min_width=10, scale=14):
|
204 |
-
with gr.Box():
|
205 |
-
with gr.Row():
|
206 |
prompt = gr.Textbox(label="Your prompt", info="Rearrange the trigger words into a coherent prompt", show_label=False, interactive=True, elem_id="prompt")
|
207 |
run_btn = gr.Button("Run", elem_id="run_button")
|
208 |
output_image = gr.Image(label="Output", height=355, elem_id="output_image", interactive=False)
|
|
|
69 |
.selected_random [data-testid="block-label"] span{display: none}
|
70 |
.plus_column{align-self: center}
|
71 |
.plus_button{font-size: 235% !important; text-align: center;margin-bottom: 19px}
|
72 |
+
#prompt{padding: 0 0 1em 0}
|
73 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
74 |
+
#run_button{position: absolute;margin-top: 25.8px;right: 0;margin-right: 0.75em;border-bottom-left-radius: 0px;border-top-left-radius: 0px}
|
|
|
75 |
.random_column{align-self: center; align-items: center;gap: 0.5em !important}
|
76 |
#share-btn-container{padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; max-width: 13rem; margin-left: auto;margin-top: 0.35em;}
|
77 |
div#share-btn-container > div {flex-direction: row;background: black;align-items: center}
|
|
|
84 |
#post_gen_info{margin-top: .5em}
|
85 |
#thumbs_up_clicked{background:green}
|
86 |
#thumbs_down_clicked{background:red}
|
87 |
+
.title_lora a{color: var(--body-text-color) !important; opacity:0.6}
|
88 |
+
#prompt_area .form{border:0}
|
89 |
'''
|
90 |
|
91 |
|
|
|
202 |
with gr.Column(min_width=10, scale=2, elem_classes="plus_column"):
|
203 |
equal = gr.HTML("=", elem_classes="plus_button")
|
204 |
with gr.Column(min_width=10, scale=14):
|
205 |
+
with gr.Box(elem_id="generate_area"):
|
206 |
+
with gr.Row(elem_id="prompt_area"):
|
207 |
prompt = gr.Textbox(label="Your prompt", info="Rearrange the trigger words into a coherent prompt", show_label=False, interactive=True, elem_id="prompt")
|
208 |
run_btn = gr.Button("Run", elem_id="run_button")
|
209 |
output_image = gr.Image(label="Output", height=355, elem_id="output_image", interactive=False)
|