leavoigt commited on
Commit
ea791c5
·
verified ·
1 Parent(s): 4068c5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.Textbox(
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).",