linx5o commited on
Commit
726acea
1 Parent(s): 41319c6
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -4,11 +4,12 @@ import os
4
  import json
5
  import time
6
 
7
- HOST = os.getenv("host")
8
- PORT = os.getenv("port")
9
- USERNAME = os.getenv("username")
10
- PASSWORD = os.getenv("password")
11
- PIOREACTOR = os.getenv("pioreactor")
 
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)