Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_d
|
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
MAX_IMAGE_SIZE = 2048
|
22 |
|
23 |
-
@spaces.GPU(duration=
|
24 |
def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
25 |
if randomize_seed:
|
26 |
seed = random.randint(0, MAX_SEED)
|
@@ -54,7 +54,7 @@ css = """
|
|
54 |
body {
|
55 |
background-color: #f4faff;
|
56 |
color: #005662;
|
57 |
-
font-family:
|
58 |
}
|
59 |
#col-container {
|
60 |
margin: 0 auto;
|
@@ -76,10 +76,12 @@ body {
|
|
76 |
border-radius: 12px;
|
77 |
padding: 16px;
|
78 |
margin-bottom: 12px;
|
|
|
79 |
}
|
80 |
.gr-examples-card:hover {
|
81 |
background-color: #e0f7fa;
|
82 |
border-color: #0277bd;
|
|
|
83 |
}
|
84 |
.gr-progress-bar, .gr-progress-bar-fill {
|
85 |
background-color: #0288d1 !important;
|
@@ -100,8 +102,7 @@ body {
|
|
100 |
with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="blue", secondary_hue="gray")) as demo:
|
101 |
|
102 |
with gr.Column(elem_id="col-container"):
|
103 |
-
gr.Markdown(f"""# FLUX.1 [dev]
|
104 |
-
12B param rectified flow transformer guidance-distilled from FLUX.1 [pro]
|
105 |
|
106 |
<a href="https://huggingface.co/black-forest-labs/FLUX.1-dev" style="text-decoration:none;">
|
107 |
<div class="gr-examples-card">
|
|
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
MAX_IMAGE_SIZE = 2048
|
22 |
|
23 |
+
@spaces.GPU(duration=200)
|
24 |
def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
25 |
if randomize_seed:
|
26 |
seed = random.randint(0, MAX_SEED)
|
|
|
54 |
body {
|
55 |
background-color: #f4faff;
|
56 |
color: #005662;
|
57 |
+
font-family: 'Poppins', sans-serif;
|
58 |
}
|
59 |
#col-container {
|
60 |
margin: 0 auto;
|
|
|
76 |
border-radius: 12px;
|
77 |
padding: 16px;
|
78 |
margin-bottom: 12px;
|
79 |
+
color: #123132;
|
80 |
}
|
81 |
.gr-examples-card:hover {
|
82 |
background-color: #e0f7fa;
|
83 |
border-color: #0277bd;
|
84 |
+
color: #123132
|
85 |
}
|
86 |
.gr-progress-bar, .gr-progress-bar-fill {
|
87 |
background-color: #0288d1 !important;
|
|
|
102 |
with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="blue", secondary_hue="gray")) as demo:
|
103 |
|
104 |
with gr.Column(elem_id="col-container"):
|
105 |
+
gr.Markdown(f"""# FLUX.1 [dev] | A Text-To-Image Rectified Flow 12B Transformer
|
|
|
106 |
|
107 |
<a href="https://huggingface.co/black-forest-labs/FLUX.1-dev" style="text-decoration:none;">
|
108 |
<div class="gr-examples-card">
|