DmitriiKhizbullin
commited on
Commit
•
490b30c
1
Parent(s):
ba65da8
Make use of ROUTE env var
Browse files
app.py
CHANGED
@@ -77,6 +77,9 @@ class App:
|
|
77 |
if 'LABEEB' in os.environ:
|
78 |
kwargs = dict(share=False, debug=True,
|
79 |
server_port=8050, server_name="0.0.0.0")
|
|
|
|
|
|
|
80 |
else:
|
81 |
kwargs = dict(share=True)
|
82 |
self.ui.queue().launch(**kwargs)
|
|
|
77 |
if 'LABEEB' in os.environ:
|
78 |
kwargs = dict(share=False, debug=True,
|
79 |
server_port=8050, server_name="0.0.0.0")
|
80 |
+
if 'ROUTE' in os.environ:
|
81 |
+
route = os.environ["ROUTE"]
|
82 |
+
kwargs['root_path'] = route
|
83 |
else:
|
84 |
kwargs = dict(share=True)
|
85 |
self.ui.queue().launch(**kwargs)
|