fffiloni commited on
Commit
8fa68e7
·
1 Parent(s): 96f8320

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -9
app.py CHANGED
@@ -123,6 +123,10 @@ div#warning-duplicate .actions a {
123
  display: inline-block;
124
  margin-right: 10px;
125
  }
 
 
 
 
126
  """
127
 
128
  with gr.Blocks(css=css) as demo:
@@ -164,7 +168,6 @@ with gr.Blocks(css=css) as demo:
164
 
165
  lora_1_sfts = gr.Dropdown(
166
  label = "Safetensors file",
167
- placeholder = "specific_chosen.safetensors",
168
  visible=False
169
  )
170
 
@@ -177,22 +180,23 @@ with gr.Blocks(css=css) as demo:
177
 
178
  lora_2_sfts = gr.Dropdown(
179
  label = "Safetensors file",
180
- placeholder = "specific_chosen.safetensors",
181
  visible=False
182
  )
183
 
184
  load_models_btn = gr.Button("Load models and .safetensors")
185
 
186
  # PART 2 • INFERENCE
187
- with gr.Row():
 
188
 
189
- prompt = gr.Textbox(
190
- label = "Your prompt",
191
- info = "Use your trigger words into a coherent prompt",
192
- placeholde = "e.g: a triggerWordOne portrait in triggerWord2 style"
193
- )
 
194
 
195
- run_btn = gr.Button("Run")
196
 
197
  output_image = gr.Image(
198
  label = "Output"
 
123
  display: inline-block;
124
  margin-right: 10px;
125
  }
126
+ #prompt{padding: 0 0 1em 0}
127
+ #prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
128
+ #run_button{position: absolute;margin-top: 25.8px;right: 0;margin-right: 0.75em;border-bottom-left-radius: 0px;border-top-left-radius: 0px}
129
+
130
  """
131
 
132
  with gr.Blocks(css=css) as demo:
 
168
 
169
  lora_1_sfts = gr.Dropdown(
170
  label = "Safetensors file",
 
171
  visible=False
172
  )
173
 
 
180
 
181
  lora_2_sfts = gr.Dropdown(
182
  label = "Safetensors file",
 
183
  visible=False
184
  )
185
 
186
  load_models_btn = gr.Button("Load models and .safetensors")
187
 
188
  # PART 2 • INFERENCE
189
+ with gr.Box():
190
+ with gr.Row():
191
 
192
+ prompt = gr.Textbox(
193
+ label = "Your prompt",
194
+ show_label = False,
195
+ info = "Use your trigger words into a coherent prompt",
196
+ placeholder = "e.g: a triggerWordOne portrait in triggerWord2 style"
197
+ )
198
 
199
+ run_btn = gr.Button("Run", elem_id="run_button")
200
 
201
  output_image = gr.Image(
202
  label = "Output"