Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,15 +7,16 @@ import torch
|
|
7 |
import json
|
8 |
from omegaconf import OmegaConf
|
9 |
|
10 |
-
import sys, os
|
11 |
-
sys.path.append(os.path.dirname(model_path))
|
12 |
-
from model import Generator
|
13 |
-
|
14 |
repo_id = "Kiwinicki/sat2map-generator"
|
15 |
generator_path = hf_hub_download(repo_id=repo_id, filename="generator.pth")
|
16 |
config_path = hf_hub_download(repo_id=repo_id, filename="config.json")
|
17 |
model_path = hf_hub_download(repo_id=repo_id, filename="model.py")
|
18 |
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
with open(config_path, "r") as f:
|
21 |
config_dict = json.load(f)
|
|
|
7 |
import json
|
8 |
from omegaconf import OmegaConf
|
9 |
|
|
|
|
|
|
|
|
|
10 |
repo_id = "Kiwinicki/sat2map-generator"
|
11 |
generator_path = hf_hub_download(repo_id=repo_id, filename="generator.pth")
|
12 |
config_path = hf_hub_download(repo_id=repo_id, filename="config.json")
|
13 |
model_path = hf_hub_download(repo_id=repo_id, filename="model.py")
|
14 |
|
15 |
+
import sys, os
|
16 |
+
sys.path.append(os.path.dirname(model_path))
|
17 |
+
from model import Generator
|
18 |
+
|
19 |
+
|
20 |
|
21 |
with open(config_path, "r") as f:
|
22 |
config_dict = json.load(f)
|