Spaces:
Runtime error
Runtime error
moflo
commited on
Commit
·
c553228
1
Parent(s):
86649bd
Adding title and description
Browse files
app.py
CHANGED
@@ -555,6 +555,8 @@ TARGET_RES = 128
|
|
555 |
|
556 |
# style_gan = StyleGAN(start_res=START_RES, target_res=TARGET_RES)
|
557 |
|
|
|
|
|
558 |
url = "https://github.com/soon-yau/stylegan_keras/releases/download/keras_example_v1.0/stylegan_128x128.ckpt.zip"
|
559 |
|
560 |
weights_path = keras.utils.get_file(
|
@@ -611,5 +613,9 @@ gr.Interface(
|
|
611 |
],
|
612 |
outputs='image',
|
613 |
examples=[[343, 'test1'], [456, 'test2']],
|
614 |
-
enable_queue=True
|
|
|
|
|
|
|
|
|
615 |
).launch()
|
|
|
555 |
|
556 |
# style_gan = StyleGAN(start_res=START_RES, target_res=TARGET_RES)
|
557 |
|
558 |
+
print("Loading...")
|
559 |
+
|
560 |
url = "https://github.com/soon-yau/stylegan_keras/releases/download/keras_example_v1.0/stylegan_128x128.ckpt.zip"
|
561 |
|
562 |
weights_path = keras.utils.get_file(
|
|
|
613 |
],
|
614 |
outputs='image',
|
615 |
examples=[[343, 'test1'], [456, 'test2']],
|
616 |
+
enable_queue=True,
|
617 |
+
title="Keras StyleGAN Generator",
|
618 |
+
description="Face image generation with StyleGAN using tf.keras",
|
619 |
+
article="<p>The code is from the Keras.io <a href='https://keras.io/examples/generative/stylegan/'>exmple</a> by Soon-Yau Cheong</p>",
|
620 |
+
css=".panel { padding: 5px }"
|
621 |
).launch()
|