Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ css = '''
|
|
64 |
.gradio-container{max-width: 100% !important}
|
65 |
h1{text-align:center}
|
66 |
'''
|
67 |
-
with gr.Blocks(css=css) as
|
68 |
with gr.Row():
|
69 |
with gr.Column():
|
70 |
gr.Markdown(
|
@@ -92,13 +92,13 @@ with gr.Blocks(css=css) as demo:
|
|
92 |
seed = gr.Slider(value=42, minimum=0, maximum=MAX_SEED, step=1, label="Seed", info="A starting point to initiate the generation process, put 0 for a random one")
|
93 |
num_images_per_prompt = gr.Slider(label="Images Per Prompt", info="Number of Images to generate with the settings",minimum=1, maximum=4, step=1, value=1)
|
94 |
|
95 |
-
gr.Examples(
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
)
|
102 |
|
103 |
gr.on(
|
104 |
triggers=[
|
@@ -109,5 +109,5 @@ with gr.Blocks(css=css) as demo:
|
|
109 |
inputs=[promptx, num_inference_steps, height, width, guidance_scale, seed, num_images_per_prompt],
|
110 |
outputs=[resultf],
|
111 |
)
|
112 |
-
|
113 |
-
|
|
|
64 |
.gradio-container{max-width: 100% !important}
|
65 |
h1{text-align:center}
|
66 |
'''
|
67 |
+
with gr.Blocks(css=css) as fluxobj:
|
68 |
with gr.Row():
|
69 |
with gr.Column():
|
70 |
gr.Markdown(
|
|
|
92 |
seed = gr.Slider(value=42, minimum=0, maximum=MAX_SEED, step=1, label="Seed", info="A starting point to initiate the generation process, put 0 for a random one")
|
93 |
num_images_per_prompt = gr.Slider(label="Images Per Prompt", info="Number of Images to generate with the settings",minimum=1, maximum=4, step=1, value=1)
|
94 |
|
95 |
+
# gr.Examples(
|
96 |
+
# examples=examples,
|
97 |
+
# fn=generate_image,
|
98 |
+
# inputs=[promptx, num_inference_steps, height, width, guidance_scale, seed, num_images_per_prompt],
|
99 |
+
# outputs=[resultf],
|
100 |
+
# cache_examples=CACHE_EXAMPLES
|
101 |
+
# )
|
102 |
|
103 |
gr.on(
|
104 |
triggers=[
|
|
|
109 |
inputs=[promptx, num_inference_steps, height, width, guidance_scale, seed, num_images_per_prompt],
|
110 |
outputs=[resultf],
|
111 |
)
|
112 |
+
if __name__ == "__main__":
|
113 |
+
fluxobj.queue(max_size=20).launch()
|