dennis-fast commited on
Commit
5ca7e26
1 Parent(s): 7608b65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -40,7 +40,13 @@ def predict(input, history=[]):
40
  #return response, history
41
  return html, history
42
 
43
- chatbot = gr.Chatbot(color_map=("green", "gray"))
 
 
 
 
 
 
44
 
45
  gr.Interface(fn=predict,
46
  title="DialoGPT-large",
 
40
  #return response, history
41
  return html, history
42
 
43
+ css = """
44
+ .chatbox {display:flex;flex-direction:column}
45
+ .msg {padding:4px;margin-bottom:4px;border-radius:4px;width:80%}
46
+ .msg.user {background-color:cornflowerblue;color:white}
47
+ .msg.bot {background-color:lightgray;align-self:self-end}
48
+ .footer {display:none !important}
49
+ """
50
 
51
  gr.Interface(fn=predict,
52
  title="DialoGPT-large",