Spaces:
Runtime error
Runtime error
Commit
·
d81477d
1
Parent(s):
f03cc9f
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ article = """
|
|
| 17 |
</p>
|
| 18 |
"""
|
| 19 |
|
| 20 |
-
def
|
| 21 |
random_latent_vectors = tf.random.normal(shape=(int(num_images), 128))
|
| 22 |
predictions = model.predict(random_latent_vectors)
|
| 23 |
num = ceil(sqrt(num_images))
|
|
@@ -44,4 +44,4 @@ examples = [
|
|
| 44 |
]
|
| 45 |
|
| 46 |
|
| 47 |
-
gr.Interface(
|
|
|
|
| 17 |
</p>
|
| 18 |
"""
|
| 19 |
|
| 20 |
+
def Predict(num_images):
|
| 21 |
random_latent_vectors = tf.random.normal(shape=(int(num_images), 128))
|
| 22 |
predictions = model.predict(random_latent_vectors)
|
| 23 |
num = ceil(sqrt(num_images))
|
|
|
|
| 44 |
]
|
| 45 |
|
| 46 |
|
| 47 |
+
gr.Interface(Predict, inputs, outputs, article=article, title=title, description=description, examples=examples, analytics_enabled=False).launch(enable_queue=True)
|