Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
e77b83d
1
Parent(s):
c20bd13
main.py
CHANGED
@@ -28,7 +28,7 @@ LATENT_DIMS = (4, SCREEN_HEIGHT // 8, SCREEN_WIDTH // 8)
|
|
28 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
29 |
# Initialize the model at the start of your application
|
30 |
#model = initialize_model("config_csllm.yaml", "yuntian-deng/computer-model")
|
31 |
-
model = initialize_model("
|
32 |
|
33 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
34 |
model = model.to(device)
|
|
|
28 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
29 |
# Initialize the model at the start of your application
|
30 |
#model = initialize_model("config_csllm.yaml", "yuntian-deng/computer-model")
|
31 |
+
model = initialize_model("config_rnn.yaml", "yuntian-deng/computer-model")
|
32 |
|
33 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
34 |
model = model.to(device)
|
utils.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
import time
|
11 |
DEBUG = False
|
12 |
|
13 |
-
def load_model_from_config(config_path, model_name, device='cuda', load=
|
14 |
# Load the config file
|
15 |
config = OmegaConf.load(config_path)
|
16 |
|
|
|
10 |
import time
|
11 |
DEBUG = False
|
12 |
|
13 |
+
def load_model_from_config(config_path, model_name, device='cuda', load=True):
|
14 |
# Load the config file
|
15 |
config = OmegaConf.load(config_path)
|
16 |
|