gaurv007 commited on
Commit
7f5fe5c
·
verified ·
1 Parent(s): 28c983c

Fix: ChatInterface examples must be list of lists with additional_inputs

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -1482,14 +1482,14 @@ with gr.Blocks(
1482
  type="messages",
1483
  additional_inputs=[chunks_state, embeddings_state, analysis_state],
1484
  examples=[
1485
- "What are the main risks in this contract?",
1486
- "Who are the parties involved?",
1487
- "What happens if the contract is terminated?",
1488
- "Are there any liability limitations?",
1489
- "What are my obligations under this contract?",
1490
- "Is there an arbitration clause?",
1491
- "What is the governing law?",
1492
- "Summarize the key terms in plain language.",
1493
  ],
1494
  title="",
1495
  description="",
 
1482
  type="messages",
1483
  additional_inputs=[chunks_state, embeddings_state, analysis_state],
1484
  examples=[
1485
+ ["What are the main risks in this contract?"],
1486
+ ["Who are the parties involved?"],
1487
+ ["What happens if the contract is terminated?"],
1488
+ ["Are there any liability limitations?"],
1489
+ ["What are my obligations under this contract?"],
1490
+ ["Is there an arbitration clause?"],
1491
+ ["What is the governing law?"],
1492
+ ["Summarize the key terms in plain language."],
1493
  ],
1494
  title="",
1495
  description="",