Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,10 +22,10 @@ ui = gr.Interface(
|
|
| 22 |
info="Provide the context/documents to use for answering. The API expects a list of dictionaries, but the UI should except anything"
|
| 23 |
),
|
| 24 |
],
|
| 25 |
-
outputs=gr.
|
| 26 |
-
label="Generated Answer"
|
| 27 |
-
lines=6,
|
| 28 |
-
show_copy_button=True
|
| 29 |
),
|
| 30 |
title="ChatFed Generation Module",
|
| 31 |
description="Ask questions based on provided context. Intended for use in RAG pipelines as an MCP server with other ChatFed modules (i.e. context supplied by semantic retriever service).",
|
|
|
|
| 22 |
info="Provide the context/documents to use for answering. The API expects a list of dictionaries, but the UI should except anything"
|
| 23 |
),
|
| 24 |
],
|
| 25 |
+
outputs=gr.JSON(
|
| 26 |
+
label="Generated Answer"
|
| 27 |
+
#lines=6,
|
| 28 |
+
#show_copy_button=True
|
| 29 |
),
|
| 30 |
title="ChatFed Generation Module",
|
| 31 |
description="Ask questions based on provided context. Intended for use in RAG pipelines as an MCP server with other ChatFed modules (i.e. context supplied by semantic retriever service).",
|