Update main_app.py
Browse files- main_app.py +3 -3
main_app.py
CHANGED
@@ -128,16 +128,16 @@ def _(client_instantiation_form, os):
|
|
128 |
### Extract Credential Variables:
|
129 |
if client_setup is not None:
|
130 |
wx_url = client_setup["wx_region"]
|
131 |
-
wx_api_key = client_setup["wx_api_key"]
|
132 |
os.environ["WATSONX_APIKEY"] = wx_api_key
|
133 |
|
134 |
if client_setup["project_id"] is not None:
|
135 |
-
project_id = client_setup["project_id"]
|
136 |
else:
|
137 |
project_id = None
|
138 |
|
139 |
if client_setup["space_id"] is not None:
|
140 |
-
space_id = client_setup["space_id"]
|
141 |
else:
|
142 |
space_id = None
|
143 |
|
|
|
128 |
### Extract Credential Variables:
|
129 |
if client_setup is not None:
|
130 |
wx_url = client_setup["wx_region"]
|
131 |
+
wx_api_key = client_setup["wx_api_key"].strip()
|
132 |
os.environ["WATSONX_APIKEY"] = wx_api_key
|
133 |
|
134 |
if client_setup["project_id"] is not None:
|
135 |
+
project_id = client_setup["project_id"].strip()
|
136 |
else:
|
137 |
project_id = None
|
138 |
|
139 |
if client_setup["space_id"] is not None:
|
140 |
+
space_id = client_setup["space_id"].strip()
|
141 |
else:
|
142 |
space_id = None
|
143 |
|