Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -318,7 +318,7 @@ def start_training(
|
|
318 |
toolkit_src = os.path.join(dataset_folder, "ai-toolkit")
|
319 |
if not os.path.exists(toolkit_src):
|
320 |
subprocess.run(
|
321 |
-
f"git clone https://github.com/ostris/ai-toolkit.git {toolkit_src}", # ai-toolkit && cd ai-toolkit && git submodule update --init --recursive
|
322 |
shell=True,
|
323 |
check=True
|
324 |
)
|
|
|
318 |
toolkit_src = os.path.join(dataset_folder, "ai-toolkit")
|
319 |
if not os.path.exists(toolkit_src):
|
320 |
subprocess.run(
|
321 |
+
f"git clone --depth 1 --filter=blob:none --sparse https://github.com/ostris/ai-toolkit.git {toolkit_src}", # ai-toolkit && cd ai-toolkit && git submodule update --init --recursive
|
322 |
shell=True,
|
323 |
check=True
|
324 |
)
|