Spaces:
Runtime error
Runtime error
Commit
•
6e678fc
1
Parent(s):
8ac8c5b
Upload start_server.sh with huggingface_hub
Browse files- start_server.sh +10 -0
start_server.sh
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Start the python script in the background asynchronously
|
4 |
+
nohup python scratchpad.py &
|
5 |
+
|
6 |
+
# Save the PID of the python script so we can reference it in the status checker
|
7 |
+
export USER_SCRIPT_PID=$!
|
8 |
+
|
9 |
+
# Start a simple web server to watch the status of the python script
|
10 |
+
python status_checker.py --this_space_repo_id davanstrien/fuego-20230428-014702-04e0f5 --output_dataset_id davanstrien/fuego-20230428-014702-04e0f5 --output_dirs "['outputs', 'logs']" --delete_on_completion True --downgrade_hardware_on_completion True
|