jira877832 commited on
Commit
0d179fc
Β·
verified Β·
1 Parent(s): 2cdcda0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def chunk_document(file, progress=gr.Progress(track_tqdm=True)):
40
  # preview = "\n\n---\n\n".join(
41
  # [f"**Chunk {i+1}:**\n{c}" for i, c in enumerate(_chunks_cache[:5])]
42
  # )
43
- summary = f"βœ… Document chunked into **{total_chunks} chunks**. Showing first 5 below.\n\n{preview}"
 
44
  return f"βœ… Ready β€” {total_chunks} chunks created. Now select a question and click Analyze.", summary
45
 
46
  except Exception as e:
 
40
  # preview = "\n\n---\n\n".join(
41
  # [f"**Chunk {i+1}:**\n{c}" for i, c in enumerate(_chunks_cache[:5])]
42
  # )
43
+ # summary = f"βœ… Document chunked into **{total_chunks} chunks**. Showing first 5 below.\n\n{preview}"
44
+ summary = f"βœ… Document chunked into **{total_chunks} chunks**. Showing first 5 below.\n\n"
45
  return f"βœ… Ready β€” {total_chunks} chunks created. Now select a question and click Analyze.", summary
46
 
47
  except Exception as e: