Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def infer(lora_1_id, lora_1_sfts, lora_2_id, lora_2_sfts, prompt, negative_promp
|
|
103 |
css="""
|
104 |
#col-container{
|
105 |
margin: 0 auto;
|
106 |
-
max-width:
|
107 |
text-align: left;
|
108 |
}
|
109 |
div#warning-duplicate {
|
@@ -129,7 +129,7 @@ div#warning-duplicate .actions a {
|
|
129 |
#prompt{padding: 0 0 1em 0}
|
130 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
131 |
#run_button{position: absolute;margin-top: 25.8px;right: 0;margin-right: 0.75em;border-bottom-left-radius: 0px;border-top-left-radius: 0px}
|
132 |
-
|
133 |
"""
|
134 |
|
135 |
with gr.Blocks(css=css) as demo:
|
@@ -207,7 +207,7 @@ with gr.Blocks(css=css) as demo:
|
|
207 |
|
208 |
# PART 2 • INFERENCE
|
209 |
with gr.Box():
|
210 |
-
with gr.Row():
|
211 |
|
212 |
prompt = gr.Textbox(
|
213 |
label = "Your prompt",
|
|
|
103 |
css="""
|
104 |
#col-container{
|
105 |
margin: 0 auto;
|
106 |
+
max-width: 650px;
|
107 |
text-align: left;
|
108 |
}
|
109 |
div#warning-duplicate {
|
|
|
129 |
#prompt{padding: 0 0 1em 0}
|
130 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
131 |
#run_button{position: absolute;margin-top: 25.8px;right: 0;margin-right: 0.75em;border-bottom-left-radius: 0px;border-top-left-radius: 0px}
|
132 |
+
#prompt_area .form{border:0}
|
133 |
"""
|
134 |
|
135 |
with gr.Blocks(css=css) as demo:
|
|
|
207 |
|
208 |
# PART 2 • INFERENCE
|
209 |
with gr.Box():
|
210 |
+
with gr.Row(elem_id="prompt-area"):
|
211 |
|
212 |
prompt = gr.Textbox(
|
213 |
label = "Your prompt",
|