deeksonparlma commited on
Commit ·
d826060
1
Parent(s): 5ef5295
updates to response
Browse files51 unmodified lines5253545556575859606162636451 unmodified linesresults_index = np.argmax(results)tag = labels[results_index]return tag# for tg in data["intents"]:# if tg['tag'] == tag:# responses = tg['responses']# # print(random.choice(responses))# response = random.choice(responses)# history.append((message, response))# return history, history51 unmodified lines5253545556575859606162636451 unmodified linesresults_index = np.argmax(results)tag = labels[results_index]for tg in data["intents"]:if tg['tag'] == tag:responses = tg['responses']# print(random.choice(responses))response = random.choice(responses)return response# history.append((message, response))# return history, history
app.py+6-6