Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,7 @@ api_env = "npm install -g n8n"
|
|
| 14 |
subprocess.Popen(api_env, shell=True, executable='/bin/bash').wait()
|
| 15 |
service_env = "npm install -g forever"
|
| 16 |
subprocess.Popen(service_env, shell=True, executable='/bin/bash').wait()
|
| 17 |
-
|
| 18 |
-
subprocess.call(["/home/user/.nvm/versions/node/v20.15.1/bin/n8n"])
|
| 19 |
|
| 20 |
# Get the API key from environment variables
|
| 21 |
key = "UCODE_SECRET"
|
|
@@ -82,4 +81,4 @@ iface = gr.Interface(
|
|
| 82 |
)
|
| 83 |
|
| 84 |
# Launch the Gradio interface
|
| 85 |
-
|
|
|
|
| 14 |
subprocess.Popen(api_env, shell=True, executable='/bin/bash').wait()
|
| 15 |
service_env = "npm install -g forever"
|
| 16 |
subprocess.Popen(service_env, shell=True, executable='/bin/bash').wait()
|
| 17 |
+
subprocess.call(["forever","start","/home/user/.nvm/versions/node/v20.15.1/bin/n8n"])
|
|
|
|
| 18 |
|
| 19 |
# Get the API key from environment variables
|
| 20 |
key = "UCODE_SECRET"
|
|
|
|
| 81 |
)
|
| 82 |
|
| 83 |
# Launch the Gradio interface
|
| 84 |
+
iface.launch()
|