Spaces:
Sleeping
Sleeping
mkaraki
commited on
Commit
•
5e892ae
1
Parent(s):
24eb1cb
Remove unused imports
Browse files- app.py +0 -4
- requirements.txt +1 -0
app.py
CHANGED
@@ -4,13 +4,9 @@ import gradio as gr
|
|
4 |
import torch
|
5 |
import torch.nn as nn
|
6 |
import torch.nn.parallel
|
7 |
-
import torch.backends.cudnn as cudnn
|
8 |
-
import torch.optim as optim
|
9 |
import torch.utils.data
|
10 |
-
import torchvision.datasets as dset
|
11 |
import torchvision.transforms as transforms
|
12 |
import torchvision.utils as vutils
|
13 |
-
import numpy as np
|
14 |
|
15 |
|
16 |
# If `RuntimeError: Error(s) in loading state_dict for Generator` error occurs:
|
|
|
4 |
import torch
|
5 |
import torch.nn as nn
|
6 |
import torch.nn.parallel
|
|
|
|
|
7 |
import torch.utils.data
|
|
|
8 |
import torchvision.transforms as transforms
|
9 |
import torchvision.utils as vutils
|
|
|
10 |
|
11 |
|
12 |
# If `RuntimeError: Error(s) in loading state_dict for Generator` error occurs:
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
torch
|
2 |
torchvision
|
|
|
3 |
gradio
|
|
|
1 |
torch
|
2 |
torchvision
|
3 |
+
numpy
|
4 |
gradio
|