Spaces:
Running
Running
Update
Browse files
app.py
CHANGED
@@ -8,14 +8,14 @@ import os
|
|
8 |
import pickle
|
9 |
import sys
|
10 |
|
11 |
-
sys.path.insert(0, 'projected_gan')
|
12 |
-
|
13 |
import gradio as gr
|
14 |
import numpy as np
|
15 |
import torch
|
16 |
import torch.nn as nn
|
17 |
from huggingface_hub import hf_hub_download
|
18 |
|
|
|
|
|
19 |
ORIGINAL_REPO_URL = 'https://github.com/autonomousvision/projected_gan'
|
20 |
TITLE = 'autonomousvision/projected_gan'
|
21 |
DESCRIPTION = f'This is a demo for {ORIGINAL_REPO_URL}.'
|
@@ -99,8 +99,6 @@ def load_model(model_name: str, device: torch.device) -> nn.Module:
|
|
99 |
|
100 |
|
101 |
def main():
|
102 |
-
gr.close_all()
|
103 |
-
|
104 |
args = parse_args()
|
105 |
device = torch.device(args.device)
|
106 |
|
|
|
8 |
import pickle
|
9 |
import sys
|
10 |
|
|
|
|
|
11 |
import gradio as gr
|
12 |
import numpy as np
|
13 |
import torch
|
14 |
import torch.nn as nn
|
15 |
from huggingface_hub import hf_hub_download
|
16 |
|
17 |
+
sys.path.insert(0, 'projected_gan')
|
18 |
+
|
19 |
ORIGINAL_REPO_URL = 'https://github.com/autonomousvision/projected_gan'
|
20 |
TITLE = 'autonomousvision/projected_gan'
|
21 |
DESCRIPTION = f'This is a demo for {ORIGINAL_REPO_URL}.'
|
|
|
99 |
|
100 |
|
101 |
def main():
|
|
|
|
|
102 |
args = parse_args()
|
103 |
device = torch.device(args.device)
|
104 |
|