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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -102,9 +102,11 @@ 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(
@@ -113,7 +115,7 @@ iface = gr.Interface(
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
 
102
  result = qa_chain({"query": question})
103
  return result["result"]
104
 
105
+ examples = [[
106
+ "Amanda: I baked cookies. Do you want some?
107
+ Jerry: Sure!
108
+ Amanda: I'll bring you tomorrow :-)"
109
+ ]]
110
 
111
  # Create Gradio interface
112
  iface = gr.Interface(
 
115
  outputs=gr.Textbox(label="Summary"),
116
  title="Conversation Summarizer",
117
  description="Enter a conversation, and the AI will provide a concise summary.",
118
+ examples = examples
119
  )
120
 
121
  # Launch the app