André Oliveira commited on
Commit
82d43c9
·
1 Parent(s): 449e9fd

fix: retrieved passed as string on optimize tool

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -449,7 +449,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
449
  #"retriever": [r.strip() for r in retriever.split(",") if r.strip()],
450
  "retriever": retriever,
451
  "embedding_model": [e.strip() for e in embedding_model.split(",") if e.strip()],
452
- "strategy": [s.strip() for s in strategy.split(",") if s.strip()],
 
453
  "chunk_sizes": [int(c) for c in chunk_sizes.split(",") if c.strip()],
454
  "overlaps": [int(o) for o in overlaps.split(",") if o.strip()],
455
  "rerankers": [r.strip() for r in rerankers.split(",") if r.strip()],
 
449
  #"retriever": [r.strip() for r in retriever.split(",") if r.strip()],
450
  "retriever": retriever,
451
  "embedding_model": [e.strip() for e in embedding_model.split(",") if e.strip()],
452
+ #"strategy": [s.strip() for s in strategy.split(",") if s.strip()],
453
+ "strategy": strategy,
454
  "chunk_sizes": [int(c) for c in chunk_sizes.split(",") if c.strip()],
455
  "overlaps": [int(o) for o in overlaps.split(",") if o.strip()],
456
  "rerankers": [r.strip() for r in rerankers.split(",") if r.strip()],