Walterchamy
commited on
Commit
•
32059b5
1
Parent(s):
5024183
Update app.py
Browse files
app.py
CHANGED
@@ -85,11 +85,13 @@ def generate_response(user_input):
|
|
85 |
{"role": "user", "content": user_input},
|
86 |
]
|
87 |
)
|
88 |
-
|
|
|
|
|
89 |
if "kiitec" in user_input.lower():
|
90 |
-
|
91 |
|
92 |
-
return
|
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")
|