Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,8 +39,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 39 |
gr.Markdown(
|
| 40 |
"""
|
| 41 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
| 42 |
-
<h1 style="font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem;">FLUX
|
| 43 |
-
<p style="font-size: 1rem; margin-bottom: 1.5rem;">
|
| 44 |
</div>
|
| 45 |
"""
|
| 46 |
)
|
|
@@ -92,7 +92,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 92 |
num_inference_steps=int(steps),
|
| 93 |
guidance_scale=float(scales),
|
| 94 |
height=int(height),
|
| 95 |
-
width=int(width)
|
|
|
|
| 96 |
).images[0]
|
| 97 |
|
| 98 |
generate_btn.click(
|
|
|
|
| 39 |
gr.Markdown(
|
| 40 |
"""
|
| 41 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
| 42 |
+
<h1 style="font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; display: contents;">Hyper-FLUX-8steps-LoRA</h1>
|
| 43 |
+
<p style="font-size: 1rem; margin-bottom: 1.5rem;">AutoML team from ByteDance</p>
|
| 44 |
</div>
|
| 45 |
"""
|
| 46 |
)
|
|
|
|
| 92 |
num_inference_steps=int(steps),
|
| 93 |
guidance_scale=float(scales),
|
| 94 |
height=int(height),
|
| 95 |
+
width=int(width),
|
| 96 |
+
max_sequence_length=256
|
| 97 |
).images[0]
|
| 98 |
|
| 99 |
generate_btn.click(
|