Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -77,10 +77,14 @@ def merge(
|
|
77 |
|
78 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
79 |
tmpdir = pathlib.Path(tmpdirname)
|
80 |
-
with open(tmpdir / "config.yaml", "w", encoding="utf-8") as f:
|
81 |
-
f.write(yaml_config)
|
82 |
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
## TODO(implement upload at the end of the merge, and display the repo URL)
|
86 |
|
|
|
77 |
|
78 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
79 |
tmpdir = pathlib.Path(tmpdirname)
|
|
|
|
|
80 |
|
81 |
+
config_path = tmpdir / "config.yaml"
|
82 |
+
config_path.write_text(yaml_config)
|
83 |
+
|
84 |
+
cmd = f"cd {tmpdir} && {cli}"
|
85 |
+
print(cmd)
|
86 |
+
print(tmpdir.is_dir())
|
87 |
+
yield from LogsView.run_process(cmd.split())
|
88 |
|
89 |
## TODO(implement upload at the end of the merge, and display the repo URL)
|
90 |
|