Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,9 +102,11 @@ def summarize_conversation(question):
|
|
102 |
result = qa_chain({"query": question})
|
103 |
return result["result"]
|
104 |
|
105 |
-
|
106 |
-
|
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 =
|
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
|