Commit
Β·
15bdc2b
1
Parent(s):
7824912
minor changes
Browse files- app.py +1 -2
- src/eval.py +1 -4
app.py
CHANGED
@@ -19,5 +19,4 @@ if __name__ == "__main__":
|
|
19 |
print("Starting the Gradio app...", flush=True)
|
20 |
demo = create_ui()
|
21 |
print("Gradio app created successfully.", flush=True)
|
22 |
-
demo.queue().launch(
|
23 |
-
print("Gradio app launched successfully.", flush=True)
|
|
|
19 |
print("Starting the Gradio app...", flush=True)
|
20 |
demo = create_ui()
|
21 |
print("Gradio app created successfully.", flush=True)
|
22 |
+
demo.queue().launch()
|
|
src/eval.py
CHANGED
@@ -53,8 +53,6 @@ def run_evaluation(submission_path):
|
|
53 |
]
|
54 |
|
55 |
try:
|
56 |
-
env = os.environ.copy()
|
57 |
-
env["PATH"] = "/home/user/minizinc/bin:" + env["PATH"]
|
58 |
process = subprocess.run(
|
59 |
command,
|
60 |
capture_output=True,
|
@@ -62,7 +60,6 @@ def run_evaluation(submission_path):
|
|
62 |
check=False,
|
63 |
timeout=600,
|
64 |
encoding='utf-8',
|
65 |
-
env=env
|
66 |
)
|
67 |
|
68 |
if process.returncode == 0:
|
@@ -76,7 +73,7 @@ def run_evaluation(submission_path):
|
|
76 |
except Exception as e:
|
77 |
print(f"Error running evaluation: {e}")
|
78 |
|
79 |
-
print(f"Evaluation process complete for: {submission_path}")
|
80 |
|
81 |
|
82 |
def start_background_evaluation(submission_path):
|
|
|
53 |
]
|
54 |
|
55 |
try:
|
|
|
|
|
56 |
process = subprocess.run(
|
57 |
command,
|
58 |
capture_output=True,
|
|
|
60 |
check=False,
|
61 |
timeout=600,
|
62 |
encoding='utf-8',
|
|
|
63 |
)
|
64 |
|
65 |
if process.returncode == 0:
|
|
|
73 |
except Exception as e:
|
74 |
print(f"Error running evaluation: {e}")
|
75 |
|
76 |
+
print(f"Evaluation process complete for: {submission_path}", flush=True)
|
77 |
|
78 |
|
79 |
def start_background_evaluation(submission_path):
|