Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def get_model(model):
|
|
111 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(interactive=True)
|
112 |
|
113 |
|
114 |
-
@spaces.GPU(duration=
|
115 |
def generate(
|
116 |
model,
|
117 |
inpaint_image,
|
@@ -304,16 +304,16 @@ with gr.Blocks(title="Fluently Playground", css=css) as demo:
|
|
304 |
width = gr.Slider(
|
305 |
label="Width",
|
306 |
minimum=256,
|
307 |
-
maximum=
|
308 |
step=8,
|
309 |
-
value=
|
310 |
)
|
311 |
height = gr.Slider(
|
312 |
label="Height",
|
313 |
minimum=256,
|
314 |
-
maximum=
|
315 |
step=8,
|
316 |
-
value=
|
317 |
)
|
318 |
with gr.Row():
|
319 |
guidance_scale = gr.Slider(
|
@@ -321,7 +321,7 @@ with gr.Blocks(title="Fluently Playground", css=css) as demo:
|
|
321 |
minimum=0.1,
|
322 |
maximum=20.0,
|
323 |
step=0.1,
|
324 |
-
value=
|
325 |
interactive=False,
|
326 |
)
|
327 |
|
|
|
111 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(interactive=True)
|
112 |
|
113 |
|
114 |
+
@spaces.GPU(duration=50, enable_queue=True)
|
115 |
def generate(
|
116 |
model,
|
117 |
inpaint_image,
|
|
|
304 |
width = gr.Slider(
|
305 |
label="Width",
|
306 |
minimum=256,
|
307 |
+
maximum=2048,
|
308 |
step=8,
|
309 |
+
value=1024,
|
310 |
)
|
311 |
height = gr.Slider(
|
312 |
label="Height",
|
313 |
minimum=256,
|
314 |
+
maximum=2048,
|
315 |
step=8,
|
316 |
+
value=1024,
|
317 |
)
|
318 |
with gr.Row():
|
319 |
guidance_scale = gr.Slider(
|
|
|
321 |
minimum=0.1,
|
322 |
maximum=20.0,
|
323 |
step=0.1,
|
324 |
+
value=6,
|
325 |
interactive=False,
|
326 |
)
|
327 |
|