ofermend commited on
Commit
60ef7a3
·
verified ·
1 Parent(s): 48cebc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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': list(str(eval(os.environ['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'],