Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def generate_image(enhanced_caption, seed, num_inference_steps, guidance_scale):
|
|
| 107 |
|
| 108 |
return image
|
| 109 |
|
| 110 |
-
@spaces.GPU(duration=
|
| 111 |
def run_pipeline(image_caption, text_caption, seed, num_inference_steps, guidance_scale, enable_enhancer):
|
| 112 |
"""Run the complete pipeline from captions to final image"""
|
| 113 |
combined_caption = f"{image_caption}, with the text on it: {text_caption}."
|
|
@@ -124,7 +124,7 @@ def run_pipeline(image_caption, text_caption, seed, num_inference_steps, guidanc
|
|
| 124 |
# Gradio interface
|
| 125 |
with gr.Blocks() as demo:
|
| 126 |
gr.Markdown("# LeX-Enhancer & LeX-Lumina Demo")
|
| 127 |
-
gr.Markdown("
|
| 128 |
gr.Markdown("Generate enhanced captions from simple image and text descriptions, then create images with LeX-Lumina")
|
| 129 |
|
| 130 |
with gr.Row():
|
|
|
|
| 107 |
|
| 108 |
return image
|
| 109 |
|
| 110 |
+
@spaces.GPU(duration=130)
|
| 111 |
def run_pipeline(image_caption, text_caption, seed, num_inference_steps, guidance_scale, enable_enhancer):
|
| 112 |
"""Run the complete pipeline from captions to final image"""
|
| 113 |
combined_caption = f"{image_caption}, with the text on it: {text_caption}."
|
|
|
|
| 124 |
# Gradio interface
|
| 125 |
with gr.Blocks() as demo:
|
| 126 |
gr.Markdown("# LeX-Enhancer & LeX-Lumina Demo")
|
| 127 |
+
gr.Markdown("## Project Page: https://zhaoshitian.github.io/lexart/")
|
| 128 |
gr.Markdown("Generate enhanced captions from simple image and text descriptions, then create images with LeX-Lumina")
|
| 129 |
|
| 130 |
with gr.Row():
|