ClaireOzzz commited on
Commit
50a7be9
1 Parent(s): f0b6c68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -200,6 +200,9 @@ def infer(use_custom_model, model_name, weight_name, custom_lora_weight, image_i
200
  return f"result.png", seed
201
 
202
  css="""
 
 
 
203
  #col-container{
204
  margin: 0 auto;
205
  max-width: 720px;
@@ -226,7 +229,16 @@ div#warning-duplicate .actions a {
226
  margin-right: 10px;
227
  }
228
  button#load_model_btn{
229
- height: 46px;
 
 
 
 
 
 
 
 
 
230
  }
231
  #status_info{
232
  font-size: 0.9em;
@@ -334,13 +346,14 @@ with gr.Blocks(theme=theme, css=css) as demo:
334
  previous_model = gr.Textbox(
335
  visible = False
336
  )
 
337
  model_status = gr.Textbox(
338
  label = "model status",
339
  show_label = False,
340
  elem_id = "status_info"
341
  )
342
  trigger_word = gr.Textbox(label="Trigger word", interactive=False, visible=False)
343
-
344
  load_model_btn = gr.Button("Load my model", elem_id="load_model_btn")
345
  image_in = gr.Image(sources="upload", type="filepath", value=( "shop1.jpg"))
346
  gr.Examples(
 
200
  return f"result.png", seed
201
 
202
  css="""
203
+ .{
204
+ height: 20%;
205
+ }
206
  #col-container{
207
  margin: 0 auto;
208
  max-width: 720px;
 
229
  margin-right: 10px;
230
  }
231
  button#load_model_btn{
232
+ height: 45px !important;
233
+ border: none;
234
+ background-color: #99F6E4; !important;
235
+ border-radius: 10px !important;
236
+ padding: 10px !important;
237
+ cursor: pointer;
238
+ display: block;
239
+ position: relative;
240
+ top: -20px;
241
+ z-index: 100;
242
  }
243
  #status_info{
244
  font-size: 0.9em;
 
346
  previous_model = gr.Textbox(
347
  visible = False
348
  )
349
+
350
  model_status = gr.Textbox(
351
  label = "model status",
352
  show_label = False,
353
  elem_id = "status_info"
354
  )
355
  trigger_word = gr.Textbox(label="Trigger word", interactive=False, visible=False)
356
+
357
  load_model_btn = gr.Button("Load my model", elem_id="load_model_btn")
358
  image_in = gr.Image(sources="upload", type="filepath", value=( "shop1.jpg"))
359
  gr.Examples(