Update app.py

#8
by linoyts HF Staff - opened
Files changed (2) hide show
  1. app.py +7 -3
  2. dora_kontext.png +0 -0
app.py CHANGED
@@ -217,6 +217,9 @@ css = """
217
  color: #2563eb;
218
  font-weight: bold;
219
  }
 
 
 
220
  #prompt {
221
  flex-grow: 1;
222
  }
@@ -241,13 +244,14 @@ css = """
241
  """
242
 
243
  # Create Gradio interface
244
- with gr.Blocks(css=css) as demo:
245
  gr_flux_loras = gr.State(value=flux_loras_raw)
246
 
247
  title = gr.HTML(
248
- """<h1> FLUX.1 Kontext Portrait 👩🏻‍🎤
249
- <br><small style="font-size: 13px; opacity: 0.75;">Flux.1 Kontext [dev] + community Kontext & Flux LoRAs 🤗</small></h1>""",
250
  )
 
251
 
252
  selected_state = gr.State(value=None)
253
  custom_loaded_lora = gr.State(value=None)
 
217
  color: #2563eb;
218
  font-weight: bold;
219
  }
220
+ #title{text-align: center}
221
+ #title h1{font-size: 3em; display:inline-flex; align-items:center}
222
+ #title img{width: 100px; margin-right: 0.5em}
223
  #prompt {
224
  flex-grow: 1;
225
  }
 
244
  """
245
 
246
  # Create Gradio interface
247
+ with gr.Blocks(css=css, theme=gr.themes.Ocean(font=[gr.themes.GoogleFont("Lexend Deca"), "sans-serif"])) as demo:
248
  gr_flux_loras = gr.State(value=flux_loras_raw)
249
 
250
  title = gr.HTML(
251
+ """<h1><img src="https://huggingface.co/spaces/kontext-community/FLUX.1-Kontext-portrait/resolve/main/dora_kontext.png" alt="LoRA"> FLUX.1 Kontext LoRA the Explorer</h1>""",
252
+ elem_id="title",
253
  )
254
+ gr.Markdown("Flux.1 Kontext [dev] + community Kontext & Flux LoRAs 🤗")
255
 
256
  selected_state = gr.State(value=None)
257
  custom_loaded_lora = gr.State(value=None)
dora_kontext.png ADDED