naourpally commited on
Commit
5839dd1
·
1 Parent(s): 5d2cd5f

Update styling

Browse files
Files changed (2) hide show
  1. app.py +26 -18
  2. style.css +0 -17
app.py CHANGED
@@ -17,24 +17,32 @@ def clear_chat():
17
  return "", ""
18
 
19
  css = """
20
- <style>
21
- .header-title {
22
- font-size: 1.5em;
23
- margin-bottom: 20px;
24
- text-align: center;
25
- }
26
- .gr-button {
27
- background-color: #7D3C98; /* Placeholder for the purple color, replace with actual color code */
28
- color: white;
29
- }
30
- .gr-button:hover {
31
- background-color: #6C3483; /* Darker purple on hover, replace with actual color code */
32
- }
33
- .acknowledgments {
34
- margin-top: 20px;
35
- text-align: center;
36
- }
37
- </style>
 
 
 
 
 
 
 
 
38
  """
39
 
40
  with gr.Blocks(css=css) as demo:
 
17
  return "", ""
18
 
19
  css = """
20
+ <style>
21
+ .header {
22
+ font-size: 24px;
23
+ font-weight: bold;
24
+ text-align: center;
25
+ margin-top: 1rem;
26
+ margin-bottom: 2rem;
27
+ }
28
+ .gr-button {
29
+ background-color: #7D3C98;
30
+ color: white;
31
+ padding: 0.5rem 1rem;
32
+ font-size: 1rem;
33
+ border-radius: 0.5rem;
34
+ }
35
+ .gr-button:hover {
36
+ background-color: #6C3483;
37
+ }
38
+ .acknowledgments {
39
+ margin-top: 20px;
40
+ text-align: center;
41
+ }
42
+ .gr-textbox, .gr-button, .gr-output {
43
+ height: 2.5rem;
44
+ }
45
+ </style>
46
  """
47
 
48
  with gr.Blocks(css=css) as demo:
style.css DELETED
@@ -1,17 +0,0 @@
1
- h1 {
2
- text-align: center;
3
- display: block;
4
- }
5
-
6
- #duplicate-button {
7
- margin: auto;
8
- color: white;
9
- background: #1565c0;
10
- border-radius: 100vh;
11
- }
12
-
13
- .contain {
14
- max-width: 900px;
15
- margin: auto;
16
- padding-top: 1.5rem;
17
- }