Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -273,7 +273,7 @@ def api_fn(api):
|
|
273 |
gr.Info("Valid API")
|
274 |
valid_api = api
|
275 |
|
276 |
-
@spaces.GPU(duration=
|
277 |
def generate(prompt, vp_pos, vp_neg, slider):
|
278 |
if vp_pos == "" and vp_neg == "":
|
279 |
slider = 0
|
@@ -309,6 +309,15 @@ with gr.Blocks(css=css, title="ViPer Demo", theme=gr.themes.Base()) as demo:
|
|
309 |
|
310 |
""")
|
311 |
with gr.Row(elem_id="main-container"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
with gr.Column(elem_id="col-container"):
|
313 |
|
314 |
gr.Markdown(f"""
|
|
|
273 |
gr.Info("Valid API")
|
274 |
valid_api = api
|
275 |
|
276 |
+
@spaces.GPU(duration=45)
|
277 |
def generate(prompt, vp_pos, vp_neg, slider):
|
278 |
if vp_pos == "" and vp_neg == "":
|
279 |
slider = 0
|
|
|
309 |
|
310 |
""")
|
311 |
with gr.Row(elem_id="main-container"):
|
312 |
+
with gr.Column(elem_id="col-container"):
|
313 |
+
gallery = gr.Gallery(
|
314 |
+
value=comment_images,
|
315 |
+
label="",
|
316 |
+
show_label=False,
|
317 |
+
columns=[5],
|
318 |
+
rows=[11],
|
319 |
+
object_fit="contain",)
|
320 |
+
|
321 |
with gr.Column(elem_id="col-container"):
|
322 |
|
323 |
gr.Markdown(f"""
|