Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,14 +74,15 @@ def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_thre
|
|
| 74 |
# return the response
|
| 75 |
return response.response
|
| 76 |
|
| 77 |
-
|
|
|
|
| 78 |
|
| 79 |
iface = Interface(
|
| 80 |
fn=chatbot,
|
| 81 |
inputs=Textbox("Enter your question"),
|
| 82 |
outputs="text",
|
| 83 |
title="AI Chatbot trained on J. Haynes mediation material, v0.5",
|
| 84 |
-
description=
|
| 85 |
|
| 86 |
iface.launch()
|
| 87 |
|
|
|
|
| 74 |
# return the response
|
| 75 |
return response.response
|
| 76 |
|
| 77 |
+
with open('about.txt', 'r') as file:
|
| 78 |
+
about = file.read()
|
| 79 |
|
| 80 |
iface = Interface(
|
| 81 |
fn=chatbot,
|
| 82 |
inputs=Textbox("Enter your question"),
|
| 83 |
outputs="text",
|
| 84 |
title="AI Chatbot trained on J. Haynes mediation material, v0.5",
|
| 85 |
+
description=about)
|
| 86 |
|
| 87 |
iface.launch()
|
| 88 |
|