raghav-gaggar commited on
Commit
2a8ca1b
·
verified ·
1 Parent(s): cff1b65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -101,14 +101,19 @@ qa_chain = RetrievalQA.from_chain_type(
101
  def summarize_conversation(question):
102
  result = qa_chain({"query": question})
103
  return result["result"]
104
-
 
 
 
 
105
  # Create Gradio interface
106
  iface = gr.Interface(
107
  fn=summarize_conversation,
108
  inputs=gr.Textbox(lines=10, label="Enter conversation here"),
109
  outputs=gr.Textbox(label="Summary"),
110
  title="Conversation Summarizer",
111
- description="Enter a conversation, and the AI will provide a concise summary."
 
112
  )
113
 
114
  # Launch the app
 
101
  def summarize_conversation(question):
102
  result = qa_chain({"query": question})
103
  return result["result"]
104
+
105
+ example = [
106
+ ["Conversation 1", "Amanda: I baked cookies. Do you want some? \nJerry: Sure! \nAmanda: I'll bring you tomorrow :-)"]
107
+ ]
108
+
109
  # Create Gradio interface
110
  iface = gr.Interface(
111
  fn=summarize_conversation,
112
  inputs=gr.Textbox(lines=10, label="Enter conversation here"),
113
  outputs=gr.Textbox(label="Summary"),
114
  title="Conversation Summarizer",
115
+ description="Enter a conversation, and the AI will provide a concise summary.",
116
+ examples = example
117
  )
118
 
119
  # Launch the app