chansung commited on
Commit
6f84fcd
1 Parent(s): 4291297

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -133,6 +133,10 @@ pipe.scheduler = DPMSolverMultistepScheduler.from_config(
133
  pipe = pipe.to("cuda")
134
 
135
  STYLES = """
 
 
 
 
136
  .left-panel {
137
  min-width: min(290px, 100%) !important;
138
  }
@@ -584,7 +588,7 @@ with gr.Blocks(css=STYLES) as demo:
584
  "design your own prompt in the textbox below, or just hit 'generate prompt for cover art` button. LLaMA2 "
585
  "model will suggest a prompt for you based on your story.")
586
 
587
- cover_art = gr.Image(interactive=False, height=256, width=256, elem_classes=['no-label-image'])
588
  gen_cover_art_prompt = gr.Textbox(lines=3, max_lines=3, elem_classes=['no-label'])
589
  # toggle between "generate prompt for cover art" and "generate cover art"
590
  gen_cover_art_btn = gr.Button("generate prompt for cover art", elem_classes=['control-label-font', 'control-button'])
 
133
  pipe = pipe.to("cuda")
134
 
135
  STYLES = """
136
+ .margin-auto {
137
+ margin: auto !important;
138
+ }
139
+
140
  .left-panel {
141
  min-width: min(290px, 100%) !important;
142
  }
 
588
  "design your own prompt in the textbox below, or just hit 'generate prompt for cover art` button. LLaMA2 "
589
  "model will suggest a prompt for you based on your story.")
590
 
591
+ cover_art = gr.Image(interactive=False, height=256, width=256, elem_classes=['no-label-image', 'margin-auto'])
592
  gen_cover_art_prompt = gr.Textbox(lines=3, max_lines=3, elem_classes=['no-label'])
593
  # toggle between "generate prompt for cover art" and "generate cover art"
594
  gen_cover_art_btn = gr.Button("generate prompt for cover art", elem_classes=['control-label-font', 'control-button'])