Spaces:
Running
on
Zero
Running
on
Zero
Fix Gradio 6.x compatibility: cache_examples and css parameter
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ css="""
|
|
| 61 |
}
|
| 62 |
"""
|
| 63 |
|
| 64 |
-
with gr.Blocks(
|
| 65 |
with gr.Column(elem_id="col-container"):
|
| 66 |
gr.Markdown(f"""# CharacterForgePro
|
| 67 |
Generate character images using FLUX.2 klein 9B on Zero GPU.
|
|
@@ -119,7 +119,7 @@ Generate character images using FLUX.2 klein 9B on Zero GPU.
|
|
| 119 |
fn=infer,
|
| 120 |
inputs=[prompt],
|
| 121 |
outputs=[result, seed],
|
| 122 |
-
cache_examples=
|
| 123 |
)
|
| 124 |
|
| 125 |
gr.on(
|
|
@@ -129,4 +129,4 @@ Generate character images using FLUX.2 klein 9B on Zero GPU.
|
|
| 129 |
outputs=[result, seed]
|
| 130 |
)
|
| 131 |
|
| 132 |
-
demo.launch()
|
|
|
|
| 61 |
}
|
| 62 |
"""
|
| 63 |
|
| 64 |
+
with gr.Blocks() as demo:
|
| 65 |
with gr.Column(elem_id="col-container"):
|
| 66 |
gr.Markdown(f"""# CharacterForgePro
|
| 67 |
Generate character images using FLUX.2 klein 9B on Zero GPU.
|
|
|
|
| 119 |
fn=infer,
|
| 120 |
inputs=[prompt],
|
| 121 |
outputs=[result, seed],
|
| 122 |
+
cache_examples=False
|
| 123 |
)
|
| 124 |
|
| 125 |
gr.on(
|
|
|
|
| 129 |
outputs=[result, seed]
|
| 130 |
)
|
| 131 |
|
| 132 |
+
demo.launch(css=css)
|