Nelly-43 commited on
Commit
9915ced
·
verified ·
1 Parent(s): 522fde6

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +8 -2
app_web.py CHANGED
@@ -241,8 +241,14 @@ def render_chat():
241
  "suggest fix(es) for the error":"suggestfix"}
242
 
243
  selection = st.multiselect("Please let me know what you need help with:", options.keys())
244
-
245
- opts = [options.get(s) for s in selection]
 
 
 
 
 
 
246
  result = explain_(qcat_result.get("action"), prompt, cfg, file_path, opts)
247
 
248
  with st.chat_message("assistant"):
 
241
  "suggest fix(es) for the error":"suggestfix"}
242
 
243
  selection = st.multiselect("Please let me know what you need help with:", options.keys())
244
+ opts = {
245
+ "rewrite": True if "rewrite" in selection else False,
246
+ "explain": True if "explain" in selection else False,
247
+ "suggestfix": True if "suggestfix" in selection else False,
248
+ # "capture": True if "capture" in selection else False,
249
+ # "verbose": True if "verbose" in selection else False,
250
+ # "lines": lines if "lines" in selection else None
251
+ }
252
  result = explain_(qcat_result.get("action"), prompt, cfg, file_path, opts)
253
 
254
  with st.chat_message("assistant"):