Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,11 @@ from torch.nn import functional as F
|
|
16 |
import matplotlib.pyplot as plt
|
17 |
import gradio as gr
|
18 |
from PIL import Image
|
19 |
-
from Dataset.testalbumentation import TestAlbumentation
|
20 |
-
from Model.Lit_cifar_module import LitCifar
|
21 |
from utils import *
|
|
|
|
|
|
|
|
|
22 |
|
23 |
model = LitCifar().cpu()
|
24 |
model.load_state_dict(torch.load('model_weights.pth', map_location=torch.device('cpu')))
|
|
|
16 |
import matplotlib.pyplot as plt
|
17 |
import gradio as gr
|
18 |
from PIL import Image
|
|
|
|
|
19 |
from utils import *
|
20 |
+
from datasets import cifar10_dataset
|
21 |
+
from models.CUSTOMRESNET import Model
|
22 |
+
from utils.incorrect_images import incorrect
|
23 |
+
|
24 |
|
25 |
model = LitCifar().cpu()
|
26 |
model.load_state_dict(torch.load('model_weights.pth', map_location=torch.device('cpu')))
|