Spaces:
Runtime error
Runtime error
Commit ·
cb17e1c
1
Parent(s): 26aca06
Debug
Browse files- app.py +3 -0
- start_service.sh +4 -4
app.py
CHANGED
|
@@ -291,4 +291,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
| 291 |
|
| 292 |
|
| 293 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
| 294 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 291 |
|
| 292 |
|
| 293 |
if __name__ == "__main__":
|
| 294 |
+
# Need to run these two services in the background
|
| 295 |
+
os.system("/data/OpenAgent/run_toolgen_service.sh >> /data/OpenAgent/log.txt 2>&1 &")
|
| 296 |
+
os.system("/data/StableToolBench/run_stabletoolbench_service.sh >> /data/StableToolBench/log.txt 2>&1 &")
|
| 297 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
start_service.sh
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
chmod +x /data/OpenAgent/run_toolgen_service.sh
|
| 4 |
-
/data/OpenAgent/run_toolgen_service.sh >> /data/OpenAgent/log.txt 2>&1 &
|
| 5 |
|
| 6 |
-
chmod +x /data/StableToolBench/run_stabletoolbench_service.sh
|
| 7 |
-
/data/StableToolBench/run_stabletoolbench_service.sh >> /data/StableToolBench/log.txt 2>&1 &
|
| 8 |
|
| 9 |
cd ~/app
|
| 10 |
python ./app.py
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# chmod +x /data/OpenAgent/run_toolgen_service.sh
|
| 4 |
+
# /data/OpenAgent/run_toolgen_service.sh >> /data/OpenAgent/log.txt 2>&1 &
|
| 5 |
|
| 6 |
+
# chmod +x /data/StableToolBench/run_stabletoolbench_service.sh
|
| 7 |
+
# /data/StableToolBench/run_stabletoolbench_service.sh >> /data/StableToolBench/log.txt 2>&1 &
|
| 8 |
|
| 9 |
cd ~/app
|
| 10 |
python ./app.py
|