Spaces:
Runtime error
Runtime error
Update background_task.py
Browse files- background_task.py +2 -2
background_task.py
CHANGED
@@ -24,7 +24,7 @@ repo_temp = Repository(
|
|
24 |
)
|
25 |
|
26 |
api = HfApi()
|
27 |
-
os.chmod('./
|
28 |
|
29 |
|
30 |
class Model:
|
@@ -187,7 +187,7 @@ def match(model1, model2):
|
|
187 |
model1_id = model1.author + "/" + model1.name
|
188 |
model2_id = model2.author + "/" + model2.name
|
189 |
print(f"Running {model1_id} against {model2_id}...")
|
190 |
-
subprocess.run(["./
|
191 |
print(f"Match {model1_id} against {model2_id} ended.")
|
192 |
|
193 |
|
|
|
24 |
)
|
25 |
|
26 |
api = HfApi()
|
27 |
+
os.chmod('./SoccerTwos.x86_64', 0o755)
|
28 |
|
29 |
|
30 |
class Model:
|
|
|
187 |
model1_id = model1.author + "/" + model1.name
|
188 |
model2_id = model2.author + "/" + model2.name
|
189 |
print(f"Running {model1_id} against {model2_id}...")
|
190 |
+
subprocess.run(["./SoccerTwos.x86_64", "-model1", model1_id, "-model2", model2_id, "-nographics", "-batchmode"])
|
191 |
print(f"Match {model1_id} against {model2_id} ended.")
|
192 |
|
193 |
|