Tafar commited on
Commit
2944216
1 Parent(s): 7f6e23d

Update styles.py

Browse files
Files changed (1) hide show
  1. styles.py +19 -9
styles.py CHANGED
@@ -1,10 +1,20 @@
1
- from gradio import gen as grgen
2
-
3
  def get_chat_interface_style():
4
- return grgen.Container(
5
- style={"background-color": "#f0f0f0", "padding": "20px", "border-radius": "10px"},
6
- components=[
7
- grgen.Component("Textbox", style={"background-color": "#e6e6e6", "padding": "10px", "border-radius": "5px"}),
8
- grgen.Component("Chatbox", style={"background-color": "#ffffff", "padding": "10px", "border-radius": "5px"}),
9
- ]
10
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  def get_chat_interface_style():
2
+ return {
3
+ "background-color": "#f0f0f0",
4
+ "padding": "20px",
5
+ "border-radius": "10px"
6
+ }
7
+
8
+ def get_textbox_style():
9
+ return {
10
+ "background-color": "#e6e6e6",
11
+ "padding": "10px",
12
+ "border-radius": "5px"
13
+ }
14
+
15
+ def get_chatbox_style():
16
+ return {
17
+ "background-color": "#ffffff",
18
+ "padding": "10px",
19
+ "border-radius": "5px"
20
+ }