TejAndrewsACC commited on
Commit
0caaefe
·
verified ·
1 Parent(s): bc83945

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -1
app.py CHANGED
@@ -28,7 +28,29 @@ def chat_function(message, history):
28
 
29
  return "", history
30
 
31
- with gr.Blocks(theme=gr.themes.Glass(), css=".gradio-container .gradio-input label, .gradio-container .gradio-output label { display: none; }") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  chatbot = gr.Chatbot(label=None)
33
  msg = gr.Textbox(placeholder="Message Z3ta...", label=None)
34
 
 
28
 
29
  return "", history
30
 
31
+ with gr.Blocks(theme=gr.themes.Glass(), css="""
32
+ .gradio-chatbot .message.user {
33
+ background-color: #e1f7d5;
34
+ border-radius: 10px;
35
+ padding: 10px;
36
+ margin: 5px;
37
+ max-width: 70%;
38
+ margin-left: auto;
39
+ }
40
+
41
+ .gradio-chatbot .message.ai {
42
+ background-color: #f0f0f0;
43
+ border-radius: 10px;
44
+ padding: 10px;
45
+ margin: 5px;
46
+ max-width: 70%;
47
+ margin-right: auto;
48
+ }
49
+
50
+ .gradio-chatbot .message {
51
+ font-size: 16px;
52
+ }
53
+ """) as demo:
54
  chatbot = gr.Chatbot(label=None)
55
  msg = gr.Textbox(placeholder="Message Z3ta...", label=None)
56