Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,8 @@ def init_db():
|
|
39 |
"""
|
40 |
r = parse("{http_pre}://{host}:{port}", st.secrets["DB_URL"])
|
41 |
client = get_client(
|
42 |
-
host=r['host'], port=r['port'], user=st.secrets["USER"], password=st.secrets["PASSWD"]
|
|
|
43 |
)
|
44 |
meta_field = {}
|
45 |
return meta_field, client
|
|
|
39 |
"""
|
40 |
r = parse("{http_pre}://{host}:{port}", st.secrets["DB_URL"])
|
41 |
client = get_client(
|
42 |
+
host=r['host'], port=r['port'], user=st.secrets["USER"], password=st.secrets["PASSWD"],
|
43 |
+
interface=r['http_pre'],
|
44 |
)
|
45 |
meta_field = {}
|
46 |
return meta_field, client
|