Spaces:
Runtime error
Runtime error
Muhammad Rama Nurimani
commited on
Commit
•
bdedc7b
1
Parent(s):
c6670f7
test deploy
Browse files- app.py +1 -1
- colorization_model.py +1 -1
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from torchvision import transforms
|
4 |
from PIL import Image
|
5 |
-
from
|
6 |
|
7 |
# Load the trained generator model
|
8 |
model_path = "generator.pth"
|
|
|
2 |
import torch
|
3 |
from torchvision import transforms
|
4 |
from PIL import Image
|
5 |
+
from colorization_model import ColorizationModel # Import your model class
|
6 |
|
7 |
# Load the trained generator model
|
8 |
model_path = "generator.pth"
|
colorization_model.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from
|
2 |
import torch
|
3 |
from skimage import color # used for lab2rgb
|
4 |
import numpy as np
|
|
|
1 |
+
from pix2pix_model import Pix2PixModel
|
2 |
import torch
|
3 |
from skimage import color # used for lab2rgb
|
4 |
import numpy as np
|