Spaces:
Runtime error
Runtime error
Commit
·
e3a10d5
1
Parent(s):
56b0939
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,6 @@
|
|
1 |
from UNet import *
|
2 |
from make_predictions import *
|
3 |
-
import torch
|
4 |
-
if torch.cuda.is_available():
|
5 |
-
device = 'cuda'
|
6 |
-
else:
|
7 |
-
device = 'cpu'
|
8 |
-
from torch.nn import Module, Conv2d, ReLU, ModuleList, MaxPool2d, ConvTranspose2d, BCELoss, BCEWithLogitsLoss, functional as F
|
9 |
-
from torch.optim import Adam
|
10 |
-
from torchvision import transforms
|
11 |
-
from torchvision.transforms import CenterCrop
|
12 |
-
from torch.utils.data import Dataset, DataLoader
|
13 |
-
import cv2
|
14 |
import gradio as gr
|
15 |
|
16 |
def getoutput(input_img):
|
|
|
1 |
from UNet import *
|
2 |
from make_predictions import *
|
3 |
+
import torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
import gradio as gr
|
5 |
|
6 |
def getoutput(input_img):
|