salomonsky commited on
Commit
79f1585
1 Parent(s): 219d097

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -18,7 +18,8 @@ translator = Translator()
18
  HF_TOKEN = os.environ.get("HF_TOKEN")
19
  basemodel = "black-forest-labs/FLUX.1-schnell"
20
  MAX_SEED = np.iinfo(np.int32).max
21
-
 
22
 
23
  # Función para habilitar LoRA
24
  def enable_lora(lora_add):
@@ -69,14 +70,14 @@ css = """
69
  }
70
  """
71
 
72
- with gr.Blocks(css=css) as demo:
73
  with gr.Column(elem_id="col-container"):
74
  gr.Markdown("# Flux Upscaled")
75
  gr.Markdown("Step 1: Generate image with FLUX schnell; Step 2: UpScale with Finegrain Image-Enhancer")
76
  with gr.Group():
77
  prompt = gr.Textbox(label="Prompt")
78
  with gr.Row():
79
- lora_add = gr.Textbox(label="Add Flux LoRA", info="Copy the HF LoRA model name here", lines=1, placeholder="Please use Warm status model")
80
  lora_word = gr.Textbox(label="Add Flux LoRA Trigger Word", info="Add the Trigger Word", lines=1, value="")
81
  width = gr.Slider(label="Width", minimum=512, maximum=1280, step=8, value=768)
82
  height = gr.Slider(label="Height", minimum=512, maximum=1280, step=8, value=1024)
 
18
  HF_TOKEN = os.environ.get("HF_TOKEN")
19
  basemodel = "black-forest-labs/FLUX.1-schnell"
20
  MAX_SEED = np.iinfo(np.int32).max
21
+ CSS = "footer { visibility: hidden; }"
22
+ JS = "function () { gradioURL = window.location.href; if (!gradioURL.endsWith('?__theme=dark')) { window.location.replace(gradioURL + '?__theme=dark'); } }"
23
 
24
  # Función para habilitar LoRA
25
  def enable_lora(lora_add):
 
70
  }
71
  """
72
 
73
+ with gr.Blocks(css=CSS, js=JS, theme="Nymbo/Nymbo_Theme") as demo:
74
  with gr.Column(elem_id="col-container"):
75
  gr.Markdown("# Flux Upscaled")
76
  gr.Markdown("Step 1: Generate image with FLUX schnell; Step 2: UpScale with Finegrain Image-Enhancer")
77
  with gr.Group():
78
  prompt = gr.Textbox(label="Prompt")
79
  with gr.Row():
80
+ lora_add = gr.Textbox(label="Add Flux LoRA", info="Modelo Lora", lines=1, value="XLabs-AI/flux-RealismLora")
81
  lora_word = gr.Textbox(label="Add Flux LoRA Trigger Word", info="Add the Trigger Word", lines=1, value="")
82
  width = gr.Slider(label="Width", minimum=512, maximum=1280, step=8, value=768)
83
  height = gr.Slider(label="Height", minimum=512, maximum=1280, step=8, value=1024)