deeksonparlma commited on
Commit ·
ebb2c8f
1
Parent(s): b608be2
updates
Browse files44 unmodified lines454647484849505115 unmodified lines6768697071727071727344 unmodified lines return np.array(bag)
def chat(message, history):def chat(message): history = history or [] message = message.lower() results = model.predict([bag_of_words(message, words)])15 unmodified lines
demo = gr.Interface( chat, [gr.Textbox(lines=1, label="Message"), "state"], [chatbot, "state"], allow_flagging="never", outputs="label", title="Tabibu | Mental Health Bot",)if __name__ == "__main__":app.py+2-4