stzhao commited on
Commit
80dc987
·
verified ·
1 Parent(s): 6624a4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ pipe = load_models()
50
  def generate_image(enhanced_caption, seed, num_inference_steps, guidance_scale):
51
  # pipe.to("cuda")
52
  pipe.enable_model_cpu_offload()
53
- """Generate image using LeX-Lumina"""
54
  # Truncate the caption if it's too long
55
  # enhanced_caption = truncate_caption_by_tokens(enhanced_caption, max_tokens=256)
56
 
@@ -94,7 +94,7 @@ def run_pipeline(image_caption, text_caption, seed, num_inference_steps, guidanc
94
  # Gradio interface
95
  with gr.Blocks() as demo:
96
  client = gr.State()
97
- gr.Markdown("# LeX-Enhancer & LeX-Lumina Demo")
98
  gr.Markdown("## Project Page: https://zhaoshitian.github.io/lexart/")
99
  gr.Markdown("Generate enhanced captions from simple image and text descriptions, then create images with LeX-Lumina")
100
 
 
50
  def generate_image(enhanced_caption, seed, num_inference_steps, guidance_scale):
51
  # pipe.to("cuda")
52
  pipe.enable_model_cpu_offload()
53
+ """Generate image using LeX-FLUX"""
54
  # Truncate the caption if it's too long
55
  # enhanced_caption = truncate_caption_by_tokens(enhanced_caption, max_tokens=256)
56
 
 
94
  # Gradio interface
95
  with gr.Blocks() as demo:
96
  client = gr.State()
97
+ gr.Markdown("# LeX-Enhancer & LeX-FLUX Demo")
98
  gr.Markdown("## Project Page: https://zhaoshitian.github.io/lexart/")
99
  gr.Markdown("Generate enhanced captions from simple image and text descriptions, then create images with LeX-Lumina")
100