Walterchamy commited on
Commit
32059b5
1 Parent(s): 5024183

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -85,11 +85,13 @@ def generate_response(user_input):
85
  {"role": "user", "content": user_input},
86
  ]
87
  )
88
- response['choices'][0]['message']['content']
 
 
89
  if "kiitec" in user_input.lower():
90
- response += "\n\n" + "Here is some information about KIITEC:\n" + KIITEC_CONTENT
91
 
92
- return response
93
 
94
  def main():
95
  st.title("Chatbot Assistant")
 
85
  {"role": "user", "content": user_input},
86
  ]
87
  )
88
+ assistant_response = response.choices[0].message.content
89
+
90
+ # Incorporate the content about KIITEC into the assistant's response
91
  if "kiitec" in user_input.lower():
92
+ assistant_response += "\n\n" + "Here is some information about KIITEC:\n" + KIITEC_CONTENT
93
 
94
+ return assistant_response
95
 
96
  def main():
97
  st.title("Chatbot Assistant")