Spaces:
Runtime error
Runtime error
abhilash1910
commited on
Commit
·
9beb587
1
Parent(s):
b7c4948
Initial commit
Browse files
app.py
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
from PIL import Image
|
2 |
import tensorflow
|
3 |
import gradio as gr
|
|
|
4 |
from tensorflow.keras.models import load_model
|
|
|
5 |
model = load_model('model')
|
|
|
6 |
def infer(img):
|
7 |
cartoonGAN = model.signatures["serving_default"]
|
8 |
img = np.array(img.convert("RGB"))
|
|
|
1 |
from PIL import Image
|
2 |
import tensorflow
|
3 |
import gradio as gr
|
4 |
+
import numpy as np
|
5 |
from tensorflow.keras.models import load_model
|
6 |
+
|
7 |
model = load_model('model')
|
8 |
+
print(model)
|
9 |
def infer(img):
|
10 |
cartoonGAN = model.signatures["serving_default"]
|
11 |
img = np.array(img.convert("RGB"))
|