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