nugentc commited on
Commit
db0e2dc
1 Parent(s): 17e61e7

swap out chat functionality

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -16,11 +16,11 @@ def chat(message, history):
16
  history.append((message, response))
17
  return history, history
18
 
19
- chatbot = gr.Chatbot(color_map=("green", "gray"))
20
- demo = gr.Interface(
21
  chat,
22
  ["text", "state"],
23
- [chatbot, "state"],
 
24
  allow_flagging="never",
25
  )
26
- demo.launch()
 
16
  history.append((message, response))
17
  return history, history
18
 
19
+ iface = gr.Interface(
 
20
  chat,
21
  ["text", "state"],
22
+ ["chatbot", "state"],
23
+ allow_screenshot=False,
24
  allow_flagging="never",
25
  )
26
+ iface.launch()