Spaces:
Runtime error
Runtime error
IMvision12
commited on
Commit
·
27758e8
1
Parent(s):
907d6fd
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
def create_digit_samples(num_images):
|
2 |
random_latent_vectors = tf.random.normal(shape=(int(num_images), 128))
|
3 |
predictions = model.predict(random_latent_vectors)
|
|
|
1 |
+
from huggingface_hub import from_pretrained_keras
|
2 |
+
import matplotlib.pyplot as plt
|
3 |
+
from math import sqrt, ceil
|
4 |
+
import tensorflow as tf
|
5 |
+
import gradio as gr
|
6 |
+
import numpy as np
|
7 |
+
|
8 |
+
model = from_pretrained_keras("IMvision12/WGAN-GP")
|
9 |
+
|
10 |
def create_digit_samples(num_images):
|
11 |
random_latent_vectors = tf.random.normal(shape=(int(num_images), 128))
|
12 |
predictions = model.predict(random_latent_vectors)
|