Spaces:
Sleeping
Sleeping
ts startup
Browse files- app/main.py +2 -4
app/main.py
CHANGED
|
@@ -125,14 +125,12 @@ if __name__ == "__main__":
|
|
| 125 |
fn=ingest,
|
| 126 |
inputs=gr.File(
|
| 127 |
label="Document Upload",
|
| 128 |
-
file_types=[".pdf", ".docx"]
|
| 129 |
-
info="Upload a PDF or DOCX file to extract and chunk text for use as context"
|
| 130 |
),
|
| 131 |
outputs=gr.Textbox(
|
| 132 |
label="Processed Context",
|
| 133 |
lines=15,
|
| 134 |
-
show_copy_button=True
|
| 135 |
-
info="Chunked document content ready for use as context in RAG pipelines"
|
| 136 |
),
|
| 137 |
title="ChatFed Ingestion Module",
|
| 138 |
description="Processes PDF or DOCX files and returns chunked text context. Intended for use in RAG pipelines as an MCP server with other ChatFed modules (i.e. context supplied to generation service).",
|
|
|
|
| 125 |
fn=ingest,
|
| 126 |
inputs=gr.File(
|
| 127 |
label="Document Upload",
|
| 128 |
+
file_types=[".pdf", ".docx"]
|
|
|
|
| 129 |
),
|
| 130 |
outputs=gr.Textbox(
|
| 131 |
label="Processed Context",
|
| 132 |
lines=15,
|
| 133 |
+
show_copy_button=True
|
|
|
|
| 134 |
),
|
| 135 |
title="ChatFed Ingestion Module",
|
| 136 |
description="Processes PDF or DOCX files and returns chunked text context. Intended for use in RAG pipelines as an MCP server with other ChatFed modules (i.e. context supplied to generation service).",
|