eradhea commited on
Commit
88e9730
·
1 Parent(s): 51a8e8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -24,12 +24,10 @@ def chat(msg, history):
24
  return history, history
25
 
26
  chatbot = gr.Chatbot().style(color_map=("red", "blue"))
27
- demo = gr.Interface(
 
28
  chat,
29
  ["text", "state"],
30
  [chatbot, "state"],
31
  allow_flagging="never",
32
- )
33
-
34
- if __name__ == "__main__":
35
- demo.launch(debug=True)
 
24
  return history, history
25
 
26
  chatbot = gr.Chatbot().style(color_map=("red", "blue"))
27
+
28
+ gr.Interface(
29
  chat,
30
  ["text", "state"],
31
  [chatbot, "state"],
32
  allow_flagging="never",
33
+ ).launch()