ChienChung commited on
Commit
f542335
·
verified ·
1 Parent(s): 88ed423

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -694,6 +694,11 @@ Feel free to ask any question related to your document.
694
  """
695
  demo_description4 = """
696
  **Context**:
 
 
 
 
 
697
  This assistant performs multi-agent tasks using tools such as:
698
  - Document summarisation
699
  - FAQ-style document Q&A
@@ -703,11 +708,6 @@ This assistant performs multi-agent tasks using tools such as:
703
  The system will automatically select the appropriate function based on the uploaded file (CSV, PDF, TXT, DOCX) and the query content.
704
  For example, if the query contains "summarize"/"摘要", it will summarize the document; if it's CSV data, it will perform data analysis.
705
  """
706
- demo_description5 = """
707
- **Context**:
708
- This demo uses Document Summarization via a Map-Reduce chain.
709
- Upload a PDF, TXT, or DOCX file to get an automatic summary of its contents.
710
- """
711
 
712
  demo = gr.TabbedInterface(
713
  interface_list=[
@@ -741,7 +741,7 @@ demo = gr.TabbedInterface(
741
  outputs="text",
742
  title="Document Summarization",
743
  allow_flagging="never",
744
- description=demo_description5
745
  ),
746
  gr.Interface(
747
  fn=multi_agent_chat_advanced,
@@ -752,7 +752,7 @@ demo = gr.TabbedInterface(
752
  outputs="text",
753
  title="Multi-Agent AI Assistant",
754
  allow_flagging="never",
755
- description=demo_description4
756
  )
757
  ],
758
  tab_names=[
 
694
  """
695
  demo_description4 = """
696
  **Context**:
697
+ This demo uses a refinement-based document summarization chain.
698
+ Upload a PDF, TXT, or DOCX file to get a concise, structured summary of its contents.
699
+ """
700
+ demo_description5 = """
701
+ **Context**:
702
  This assistant performs multi-agent tasks using tools such as:
703
  - Document summarisation
704
  - FAQ-style document Q&A
 
708
  The system will automatically select the appropriate function based on the uploaded file (CSV, PDF, TXT, DOCX) and the query content.
709
  For example, if the query contains "summarize"/"摘要", it will summarize the document; if it's CSV data, it will perform data analysis.
710
  """
 
 
 
 
 
711
 
712
  demo = gr.TabbedInterface(
713
  interface_list=[
 
741
  outputs="text",
742
  title="Document Summarization",
743
  allow_flagging="never",
744
+ description=demo_description4
745
  ),
746
  gr.Interface(
747
  fn=multi_agent_chat_advanced,
 
752
  outputs="text",
753
  title="Multi-Agent AI Assistant",
754
  allow_flagging="never",
755
+ description=demo_description5
756
  )
757
  ],
758
  tab_names=[