try again
Browse files
app.py
CHANGED
@@ -4,11 +4,12 @@ import os
|
|
4 |
import json
|
5 |
import time
|
6 |
|
7 |
-
HOST = os.
|
8 |
-
PORT = os.
|
9 |
-
USERNAME = os.
|
10 |
-
PASSWORD = os.
|
11 |
-
PIOREACTOR = os.
|
|
|
12 |
|
13 |
HOST_gr = gr.Textbox(label="Host", value=HOST, visible=False)
|
14 |
PORT_gr = gr.Number(label="Port", value=PORT, visible=False)
|
|
|
4 |
import json
|
5 |
import time
|
6 |
|
7 |
+
HOST = os.environ.get("host")
|
8 |
+
PORT = int(os.environ.get("port"))
|
9 |
+
USERNAME = os.environ.get("username")
|
10 |
+
PASSWORD = os.environ.get("password")
|
11 |
+
PIOREACTOR = os.environ.get("pioreactor")
|
12 |
+
|
13 |
|
14 |
HOST_gr = gr.Textbox(label="Host", value=HOST, visible=False)
|
15 |
PORT_gr = gr.Number(label="Port", value=PORT, visible=False)
|