Update app.py
Browse files
app.py
CHANGED
@@ -3,18 +3,18 @@ from dotenv import load_dotenv
|
|
3 |
from subprocess import Popen
|
4 |
load_dotenv()
|
5 |
|
6 |
-
command = ["pip", "uninstall", "ipykernel"]
|
7 |
-
worker = Popen(command)
|
8 |
-
worker.wait()
|
9 |
|
10 |
-
command = ["pip", "install", "ipykernel"]
|
11 |
-
worker = Popen(command)
|
12 |
-
worker.wait()
|
13 |
|
14 |
-
command = ["pip", "install", "numexpr==2.7.3"]
|
15 |
-
worker = Popen(command)
|
16 |
-
worker.wait()
|
17 |
|
18 |
-
command = ["mercury", "run"
|
19 |
worker = Popen(command)
|
20 |
worker.wait()
|
|
|
3 |
from subprocess import Popen
|
4 |
load_dotenv()
|
5 |
|
6 |
+
#command = ["pip", "uninstall", "ipykernel"]
|
7 |
+
#worker = Popen(command)
|
8 |
+
#worker.wait()
|
9 |
|
10 |
+
#command = ["pip", "install", "ipykernel"]
|
11 |
+
#worker = Popen(command)
|
12 |
+
#worker.wait()
|
13 |
|
14 |
+
#command = ["pip", "install", "numexpr==2.7.3"]
|
15 |
+
#worker = Popen(command)
|
16 |
+
#worker.wait()
|
17 |
|
18 |
+
command = ["mercury", "run"]#, f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
|
19 |
worker = Popen(command)
|
20 |
worker.wait()
|