moflo
commited on
Commit
·
30129c4
1
Parent(s):
b068351
Better defaults
Browse files
app.py
CHANGED
|
@@ -571,6 +571,7 @@ weights_path = keras.utils.get_file(
|
|
| 571 |
)
|
| 572 |
|
| 573 |
print("Pretrained:")
|
|
|
|
| 574 |
print(os.listdir(os.path.join("pretrained/checkpoints")))
|
| 575 |
|
| 576 |
# style_gan.grow_model(128)
|
|
@@ -616,11 +617,11 @@ def fn(seed, feature):
|
|
| 616 |
gr.Interface(
|
| 617 |
fn,
|
| 618 |
inputs=[
|
| 619 |
-
gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=
|
| 620 |
gr.inputs.Radio(list({"human","robot","soul patch"}), type="value", default='test1', label='Feature Type')
|
| 621 |
],
|
| 622 |
outputs='image',
|
| 623 |
-
examples=[[802573202, 'robot'], [
|
| 624 |
enable_queue=True,
|
| 625 |
title="NFT GAN",
|
| 626 |
description="Select random seed and selct Submit to generate a new image",
|
|
|
|
| 571 |
)
|
| 572 |
|
| 573 |
print("Pretrained:")
|
| 574 |
+
print(os.listdir(os.path.join("pretrained")))
|
| 575 |
print(os.listdir(os.path.join("pretrained/checkpoints")))
|
| 576 |
|
| 577 |
# style_gan.grow_model(128)
|
|
|
|
| 617 |
gr.Interface(
|
| 618 |
fn,
|
| 619 |
inputs=[
|
| 620 |
+
gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=298422436, label='Random Seed'),
|
| 621 |
gr.inputs.Radio(list({"human","robot","soul patch"}), type="value", default='test1', label='Feature Type')
|
| 622 |
],
|
| 623 |
outputs='image',
|
| 624 |
+
examples=[[802573202, 'robot'], [298422436, 'human'], [144371941, 'robot'], [85644372, 'human'], [115008156, 'human'], [95432300, 'human'], [901305056, 'robot']],
|
| 625 |
enable_queue=True,
|
| 626 |
title="NFT GAN",
|
| 627 |
description="Select random seed and selct Submit to generate a new image",
|