Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
02c556a
1
Parent(s):
5a8dc82
Update app.py
Browse files
app.py
CHANGED
@@ -133,8 +133,8 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
133 |
placeholder="Enter your prompt",
|
134 |
container=False,
|
135 |
)
|
136 |
-
run_button = gr.Button("Run", scale=0)
|
137 |
-
result = gr.
|
138 |
|
139 |
with gr.Row(visible=True):
|
140 |
grid_size_selection = gr.Dropdown(
|
@@ -209,7 +209,8 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
209 |
examples=examples,
|
210 |
inputs=[prompt],
|
211 |
outputs=[result, seed],
|
212 |
-
fn=infer
|
|
|
213 |
)
|
214 |
|
215 |
gr.on(
|
|
|
133 |
placeholder="Enter your prompt",
|
134 |
container=False,
|
135 |
)
|
136 |
+
run_button = gr.Button("Run", scale=0, variant="primary")
|
137 |
+
result = gr.Image(label="Result", columns=1, preview=True, show_label=False)
|
138 |
|
139 |
with gr.Row(visible=True):
|
140 |
grid_size_selection = gr.Dropdown(
|
|
|
209 |
examples=examples,
|
210 |
inputs=[prompt],
|
211 |
outputs=[result, seed],
|
212 |
+
fn=infer,
|
213 |
+
cache_examples=True
|
214 |
)
|
215 |
|
216 |
gr.on(
|