Abid commited on
Commit
97dc70a
·
1 Parent(s): 83e3743

block custom colors

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,13 +44,13 @@ with demo:
44
  """
45
  )
46
  state = gr.Variable(value=[])
47
- chatbot = gr.Chatbot(color_map=("##00ff7f","#00d5ff"))
48
  text = gr.Textbox(
49
  label="Talk to Morty here... (press enter to submit)",
50
  value="How are you?",
51
  placeholder="What is your name?",
52
  max_lines=1,
53
- )
54
 
55
  text.submit(predict, [text, state], [chatbot, state])
56
  text.submit(lambda x: "", text, text)
 
44
  """
45
  )
46
  state = gr.Variable(value=[])
47
+ chatbot = gr.Chatbot(color_map=("#00ff7f", "#00d5ff"))
48
  text = gr.Textbox(
49
  label="Talk to Morty here... (press enter to submit)",
50
  value="How are you?",
51
  placeholder="What is your name?",
52
  max_lines=1,
53
+ ).style(text_color="#00ff7f", container_bg_color="#00d5ff",)
54
 
55
  text.submit(predict, [text, state], [chatbot, state])
56
  text.submit(lambda x: "", text, text)