Spaces:
Build error
Build error
Commit
·
fe59c19
1
Parent(s):
b4b8cdc
app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
import random
|
| 3 |
import numpy as np
|
| 4 |
-
#from tqdm import tqdm
|
| 5 |
-
#import matplotlib.pyplot as plt
|
| 6 |
-
|
| 7 |
import tensorflow as tf
|
| 8 |
-
#import tensorflow_addons as tfa
|
| 9 |
-
#from tensorflow import keras
|
| 10 |
-
#from tensorflow.keras import layers
|
| 11 |
|
| 12 |
from glob import glob
|
| 13 |
from PIL import Image
|
|
@@ -17,8 +11,6 @@ from huggingface_hub import from_pretrained_keras
|
|
| 17 |
|
| 18 |
model = from_pretrained_keras("RobotJelly/GauGAN-Image-generation")
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
def predict(image_file):
|
| 23 |
# print(image_file)
|
| 24 |
# img = Image.open(image_file)
|
|
|
|
| 1 |
import os
|
| 2 |
import random
|
| 3 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
| 4 |
import tensorflow as tf
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
from glob import glob
|
| 7 |
from PIL import Image
|
|
|
|
| 11 |
|
| 12 |
model = from_pretrained_keras("RobotJelly/GauGAN-Image-generation")
|
| 13 |
|
|
|
|
|
|
|
| 14 |
def predict(image_file):
|
| 15 |
# print(image_file)
|
| 16 |
# img = Image.open(image_file)
|