Spaces:
Runtime error
Runtime error
Commit
·
4337794
1
Parent(s):
27758e8
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import numpy as np
|
|
7 |
|
8 |
model = from_pretrained_keras("IMvision12/WGAN-GP")
|
9 |
|
10 |
-
def
|
11 |
random_latent_vectors = tf.random.normal(shape=(int(num_images), 128))
|
12 |
predictions = model.predict(random_latent_vectors)
|
13 |
num = ceil(sqrt(num_images))
|
@@ -42,4 +42,4 @@ examples = [
|
|
42 |
]
|
43 |
|
44 |
|
45 |
-
gr.Interface(
|
|
|
7 |
|
8 |
model = from_pretrained_keras("IMvision12/WGAN-GP")
|
9 |
|
10 |
+
def Predict(num_images):
|
11 |
random_latent_vectors = tf.random.normal(shape=(int(num_images), 128))
|
12 |
predictions = model.predict(random_latent_vectors)
|
13 |
num = ceil(sqrt(num_images))
|
|
|
42 |
]
|
43 |
|
44 |
|
45 |
+
gr.Interface(Predict, inputs, outputs, title=title, examples=examples, description=description, article=article, analytics_enabled=False).launch(debug=True)
|