Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,13 +116,17 @@ def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_thre
|
|
| 116 |
with open('about.txt', 'r') as file:
|
| 117 |
about = file.read()
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
iface = Interface(
|
| 120 |
fn=chatbot,
|
| 121 |
inputs=Textbox("Enter your question"),
|
| 122 |
outputs="text",
|
| 123 |
-
title=
|
| 124 |
-
description=
|
| 125 |
-
examples=
|
| 126 |
article=about)
|
| 127 |
|
| 128 |
iface.launch()
|
|
|
|
| 116 |
with open('about.txt', 'r') as file:
|
| 117 |
about = file.read()
|
| 118 |
|
| 119 |
+
examples=[["Sarah and Charlie are having a dispute around how to share the Easter holidays with their children. Can you please give them 3 options?"]]
|
| 120 |
+
description="GPT3_Chatbot drawing on contextual mediation material, v0.6H"
|
| 121 |
+
title="The MediatorBot"
|
| 122 |
+
|
| 123 |
iface = Interface(
|
| 124 |
fn=chatbot,
|
| 125 |
inputs=Textbox("Enter your question"),
|
| 126 |
outputs="text",
|
| 127 |
+
title=title,
|
| 128 |
+
description=description,
|
| 129 |
+
examples=examples
|
| 130 |
article=about)
|
| 131 |
|
| 132 |
iface.launch()
|