Spaces:
Runtime error
Runtime error
Pierre Tassel
commited on
Commit
·
8fcbf62
1
Parent(s):
90b5809
try to fix RAY
Browse files
app.py
CHANGED
@@ -47,8 +47,6 @@ def make_env(seed, instance):
|
|
47 |
|
48 |
|
49 |
def solve(file):
|
50 |
-
ray.init(log_to_driver=False,
|
51 |
-
include_dashboard=False)
|
52 |
random.seed(0)
|
53 |
np.random.seed(0)
|
54 |
torch.manual_seed(0)
|
@@ -149,6 +147,9 @@ def solve(file):
|
|
149 |
reloadedPILImage = Image.open(buffer)
|
150 |
return pretty_output, reloadedPILImage, str(total_time) + " seconds"
|
151 |
|
|
|
|
|
|
|
152 |
title = "Job-Shop Scheduling CP RL"
|
153 |
description = "A Job-Shop Scheduling Reinforcement Learning based solver, using an underlying CP model as an " \
|
154 |
"environment. \n" \
|
|
|
47 |
|
48 |
|
49 |
def solve(file):
|
|
|
|
|
50 |
random.seed(0)
|
51 |
np.random.seed(0)
|
52 |
torch.manual_seed(0)
|
|
|
147 |
reloadedPILImage = Image.open(buffer)
|
148 |
return pretty_output, reloadedPILImage, str(total_time) + " seconds"
|
149 |
|
150 |
+
ray.init(log_to_driver=False,
|
151 |
+
ignore_reinit_error=True,
|
152 |
+
include_dashboard=False)
|
153 |
title = "Job-Shop Scheduling CP RL"
|
154 |
description = "A Job-Shop Scheduling Reinforcement Learning based solver, using an underlying CP model as an " \
|
155 |
"environment. \n" \
|