Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def launch_bot():
|
|
39 |
if 'cfg' not in st.session_state:
|
40 |
cfg = OmegaConf.create({
|
41 |
'customer_id': str(os.environ['customer_id']),
|
42 |
-
'corpus_ids':
|
43 |
'api_key': str(os.environ['api_key']),
|
44 |
'title': os.environ['title'],
|
45 |
'description': os.environ['description'],
|
|
|
39 |
if 'cfg' not in st.session_state:
|
40 |
cfg = OmegaConf.create({
|
41 |
'customer_id': str(os.environ['customer_id']),
|
42 |
+
'corpus_ids': [cid.strip() for cid in os.environ['corpus_ids'].split(',') if cid.strip()],
|
43 |
'api_key': str(os.environ['api_key']),
|
44 |
'title': os.environ['title'],
|
45 |
'description': os.environ['description'],
|