peterpull commited on
Commit
1cde52c
·
1 Parent(s): 232bf6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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="Please enter a question for the chatbot as though you were addressing Dr John Haynes eg How do you use intuition in a mediation?")
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