d. nye
commited on
Commit
·
ed8bd59
1
Parent(s):
4348d97
Better defaults
Browse files
app.py
CHANGED
|
@@ -605,17 +605,19 @@ class InferenceWrapper:
|
|
| 605 |
|
| 606 |
wrapper = InferenceWrapper('celeba')
|
| 607 |
|
|
|
|
|
|
|
| 608 |
def fn(seed, feature):
|
| 609 |
return wrapper(seed, feature)
|
| 610 |
|
| 611 |
gr.Interface(
|
| 612 |
fn,
|
| 613 |
inputs=[
|
| 614 |
-
gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=
|
| 615 |
-
gr.inputs.Radio(list({"
|
| 616 |
],
|
| 617 |
outputs='image',
|
| 618 |
-
examples=[[343, '
|
| 619 |
enable_queue=True,
|
| 620 |
title="NFT GAN",
|
| 621 |
description="Select random seed and selct Submit to generate a new image",
|
|
|
|
| 605 |
|
| 606 |
wrapper = InferenceWrapper('celeba')
|
| 607 |
|
| 608 |
+
#Seeds: 144371941 85644372 115008156 95432300 901305056
|
| 609 |
+
|
| 610 |
def fn(seed, feature):
|
| 611 |
return wrapper(seed, feature)
|
| 612 |
|
| 613 |
gr.Interface(
|
| 614 |
fn,
|
| 615 |
inputs=[
|
| 616 |
+
gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=144371941, label='Random Seed'),
|
| 617 |
+
gr.inputs.Radio(list({"human","robot","soul patch"}), type="value", default='test1', label='Feature Type')
|
| 618 |
],
|
| 619 |
outputs='image',
|
| 620 |
+
examples=[[343, 'human'], [456, 'human'], [144371941, 'human'], [85644372, 'human'], [115008156, 'human'], [95432300, 'human'], [901305056, 'human']],
|
| 621 |
enable_queue=True,
|
| 622 |
title="NFT GAN",
|
| 623 |
description="Select random seed and selct Submit to generate a new image",
|