Spaces:
Sleeping
Sleeping
ghostofdivinity
commited on
Commit
•
4479c94
1
Parent(s):
0327caf
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import torchaudio
|
4 |
-
from google.colab import drive
|
5 |
-
drive.mount('/content/drive')
|
6 |
from torch import nn
|
7 |
|
8 |
# Load the saved generator model
|
@@ -25,7 +23,7 @@ class Generator(nn.Module):
|
|
25 |
latent_dim = 100
|
26 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
27 |
generator = Generator(latent_dim).to(device)
|
28 |
-
generator_model_path = '/
|
29 |
generator.load_state_dict(torch.load(generator_model_path, map_location=device))
|
30 |
|
31 |
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import torchaudio
|
|
|
|
|
4 |
from torch import nn
|
5 |
|
6 |
# Load the saved generator model
|
|
|
23 |
latent_dim = 100
|
24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
25 |
generator = Generator(latent_dim).to(device)
|
26 |
+
generator_model_path = 'noiseKickGAN/generator_model.pkl'
|
27 |
generator.load_state_dict(torch.load(generator_model_path, map_location=device))
|
28 |
|
29 |
|