Web3Daily commited on
Commit
2b0a2f8
1 Parent(s): 835d767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -7
app.py CHANGED
@@ -20,13 +20,34 @@ demo = gr.Interface(
20
  inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
21
  outputs=gr.Textbox(label="Get a simple answer in return:"),
22
  title="Web(GPT)3",
23
- css=""".gradio-container, .svelte-drgfj5, .svelte-1jsbsph, .scroll-hide.svelte-drgfj5, .svelte-1ed2p3z, .main.svelte-v63enf,
24
- .wrap.svelte-ujkds4, .contain, .svelte-1adap6y.gap, .block.svelte-1scc9gv.padded, .wrap.center.svelte-1d50qkz.hide, .prose.svelte-1yrv54,
25
- .flex.svelte-1btyfsc.unequal-height, .svelte-1adap6y.gap.panel, .svelte-1adap6y.gap, .form.svelte-w3fdu4, .block.svelte-1scc9gv.padded,
26
- .svelte-drgfj5, .svelte-1jsbsph, .scroll-hide.svelte-drgfj5, . {
27
- background-color: #FFFFFF;
28
- border-color: #FFFFFF;
29
- color: black}"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  )
31
 
32
 
 
20
  inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
21
  outputs=gr.Textbox(label="Get a simple answer in return:"),
22
  title="Web(GPT)3",
23
+ css="""
24
+ body {
25
+ background-color: #f2f2f2 !important;
26
+ }
27
+ .input_text, .output_text {
28
+ color: #4b4b4b !important;
29
+ background-color: #e8e8e8 !important;
30
+ font-family: 'Arial' !important, sans-serif !important;
31
+ font-size: 16px !important;
32
+ border-radius: 5px !important;
33
+ }
34
+ .input_label, .output_label { /* Change the style of input and output labels */
35
+ color: #3a3a3a;
36
+ font-family: 'Arial', sans-serif;
37
+ font-size: 18px;
38
+ font-weight: bold;
39
+ }
40
+ .button {
41
+ background-color: #007BFF !important;
42
+ color: white !important;
43
+ font-family: 'Arial' !important, sans-serif !important;
44
+ font-size: 16px !important;
45
+ border-radius: 5px !important;
46
+ }
47
+ .button:hover { /* Change the style of the submit button on hover */
48
+ background-color: #0056b3;
49
+ }
50
+ """
51
  )
52
 
53