Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -194,7 +194,7 @@ def generate_30(
|
|
194 |
upload_to_ftp(sd_image_path)
|
195 |
unique_name = str(uuid.uuid4()) + ".png"
|
196 |
os.symlink(sd_image_path, unique_name)
|
197 |
-
return [unique_name]
|
198 |
|
199 |
@spaces.GPU(duration=60)
|
200 |
def generate_60(
|
@@ -234,7 +234,7 @@ def generate_60(
|
|
234 |
upload_to_ftp(sd_image_path)
|
235 |
unique_name = str(uuid.uuid4()) + ".png"
|
236 |
os.symlink(sd_image_path, unique_name)
|
237 |
-
return [unique_name]
|
238 |
|
239 |
@spaces.GPU(duration=90)
|
240 |
def generate_90(
|
@@ -274,7 +274,7 @@ def generate_90(
|
|
274 |
upload_to_ftp(sd_image_path)
|
275 |
unique_name = str(uuid.uuid4()) + ".png"
|
276 |
os.symlink(sd_image_path, unique_name)
|
277 |
-
return [unique_name]
|
278 |
|
279 |
def load_predefined_images1():
|
280 |
predefined_images1 = [
|
@@ -321,7 +321,6 @@ with gr.Blocks(theme=gr.themes.Origin(),css=css) as demo:
|
|
321 |
|
322 |
with gr.Row():
|
323 |
|
324 |
-
|
325 |
style_selection = gr.Radio(
|
326 |
show_label=True,
|
327 |
container=True,
|
@@ -401,7 +400,7 @@ with gr.Blocks(theme=gr.themes.Origin(),css=css) as demo:
|
|
401 |
guidance_scale,
|
402 |
num_inference_steps,
|
403 |
],
|
404 |
-
outputs=[result
|
405 |
)
|
406 |
|
407 |
gr.on(
|
@@ -420,7 +419,7 @@ with gr.Blocks(theme=gr.themes.Origin(),css=css) as demo:
|
|
420 |
guidance_scale,
|
421 |
num_inference_steps,
|
422 |
],
|
423 |
-
outputs=[result
|
424 |
)
|
425 |
|
426 |
gr.on(
|
@@ -439,7 +438,7 @@ with gr.Blocks(theme=gr.themes.Origin(),css=css) as demo:
|
|
439 |
guidance_scale,
|
440 |
num_inference_steps,
|
441 |
],
|
442 |
-
outputs=[result
|
443 |
)
|
444 |
|
445 |
gr.Markdown("### REALVISXL V5.0")
|
|
|
194 |
upload_to_ftp(sd_image_path)
|
195 |
unique_name = str(uuid.uuid4()) + ".png"
|
196 |
os.symlink(sd_image_path, unique_name)
|
197 |
+
return [unique_name]
|
198 |
|
199 |
@spaces.GPU(duration=60)
|
200 |
def generate_60(
|
|
|
234 |
upload_to_ftp(sd_image_path)
|
235 |
unique_name = str(uuid.uuid4()) + ".png"
|
236 |
os.symlink(sd_image_path, unique_name)
|
237 |
+
return [unique_name]
|
238 |
|
239 |
@spaces.GPU(duration=90)
|
240 |
def generate_90(
|
|
|
274 |
upload_to_ftp(sd_image_path)
|
275 |
unique_name = str(uuid.uuid4()) + ".png"
|
276 |
os.symlink(sd_image_path, unique_name)
|
277 |
+
return [unique_name]
|
278 |
|
279 |
def load_predefined_images1():
|
280 |
predefined_images1 = [
|
|
|
321 |
|
322 |
with gr.Row():
|
323 |
|
|
|
324 |
style_selection = gr.Radio(
|
325 |
show_label=True,
|
326 |
container=True,
|
|
|
400 |
guidance_scale,
|
401 |
num_inference_steps,
|
402 |
],
|
403 |
+
outputs=[result],
|
404 |
)
|
405 |
|
406 |
gr.on(
|
|
|
419 |
guidance_scale,
|
420 |
num_inference_steps,
|
421 |
],
|
422 |
+
outputs=[result],
|
423 |
)
|
424 |
|
425 |
gr.on(
|
|
|
438 |
guidance_scale,
|
439 |
num_inference_steps,
|
440 |
],
|
441 |
+
outputs=[result],
|
442 |
)
|
443 |
|
444 |
gr.Markdown("### REALVISXL V5.0")
|