Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,14 +15,12 @@ def launch_bot():
|
|
15 |
|
16 |
if 'cfg' not in st.session_state:
|
17 |
corpus_ids = str(os.environ['corpus_ids']).split(',')
|
18 |
-
questions = list(eval(os.environ['examples']))
|
19 |
cfg = OmegaConf.create({
|
20 |
'customer_id': str(os.environ['customer_id']),
|
21 |
'corpus_ids': corpus_ids,
|
22 |
'api_key': str(os.environ['api_key']),
|
23 |
'title': os.environ['title'],
|
24 |
'description': os.environ['description'],
|
25 |
-
'examples': questions,
|
26 |
'source_data_desc': os.environ['source_data_desc']
|
27 |
})
|
28 |
st.session_state.cfg = cfg
|
|
|
15 |
|
16 |
if 'cfg' not in st.session_state:
|
17 |
corpus_ids = str(os.environ['corpus_ids']).split(',')
|
|
|
18 |
cfg = OmegaConf.create({
|
19 |
'customer_id': str(os.environ['customer_id']),
|
20 |
'corpus_ids': corpus_ids,
|
21 |
'api_key': str(os.environ['api_key']),
|
22 |
'title': os.environ['title'],
|
23 |
'description': os.environ['description'],
|
|
|
24 |
'source_data_desc': os.environ['source_data_desc']
|
25 |
})
|
26 |
st.session_state.cfg = cfg
|