Spaces:
Running
Running
Update app.py
Browse files
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:
|