Commit ·
a174579
1
Parent(s): 49dca14
start.py
CHANGED
|
@@ -2,6 +2,8 @@ import os
|
|
| 2 |
import subprocess
|
| 3 |
from huggingface_hub import CommitScheduler
|
| 4 |
|
|
|
|
|
|
|
| 5 |
print(f"Files in current working dir ({os.getcwd()}):")
|
| 6 |
# List all files and directories in cwd
|
| 7 |
for item in os.listdir(os.getcwd()):
|
|
@@ -31,4 +33,4 @@ with CommitScheduler(repo_id=REPO_ID, token=HF_TOKEN, folder_path=LOCAL_FOLDER,
|
|
| 31 |
|
| 32 |
print("Start Potato Server")
|
| 33 |
subprocess.run(["potato", "start", "config.yaml", "-p", "7860", "--debug"])
|
| 34 |
-
|
|
|
|
| 2 |
import subprocess
|
| 3 |
from huggingface_hub import CommitScheduler
|
| 4 |
|
| 5 |
+
os.chdir("potato")
|
| 6 |
+
|
| 7 |
print(f"Files in current working dir ({os.getcwd()}):")
|
| 8 |
# List all files and directories in cwd
|
| 9 |
for item in os.listdir(os.getcwd()):
|
|
|
|
| 33 |
|
| 34 |
print("Start Potato Server")
|
| 35 |
subprocess.run(["potato", "start", "config.yaml", "-p", "7860", "--debug"])
|
| 36 |
+
|