Funbi commited on
Commit
d3178eb
1 Parent(s): ec654be

Add apllication file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,8 +30,8 @@ def chat(message, history):
30
  else:
31
  response = query({"inputs": {"past_user_inputs":past_user,"generated_responses":generated,"text":message},})
32
  response = response['generated_text']
33
- past_user.append(message)
34
- generated.append(response)
35
  history.append((message, response))
36
  return history, history
37
 
@@ -39,7 +39,7 @@ chatbot = gr.Chatbot().style(color_map=("green", "pink"))
39
  demo = gr.Interface(
40
  chat,
41
  ["text", "state"],
42
- ["chatbot", "state"],
43
  allow_flagging="never",title="Chatbot",
44
  description="This is chatbot made by using a pre-train model by Facebook called blender and I then primed it with a little extra information",
45
 
 
30
  else:
31
  response = query({"inputs": {"past_user_inputs":past_user,"generated_responses":generated,"text":message},})
32
  response = response['generated_text']
33
+ # past_user.append(message)
34
+ # generated.append(response)
35
  history.append((message, response))
36
  return history, history
37
 
 
39
  demo = gr.Interface(
40
  chat,
41
  ["text", "state"],
42
+ [chatbot, "state"],
43
  allow_flagging="never",title="Chatbot",
44
  description="This is chatbot made by using a pre-train model by Facebook called blender and I then primed it with a little extra information",
45