datasciencedojo commited on
Commit
13e9383
·
1 Parent(s): 5825863

Update app.py

Browse files

update styling of submit button

Files changed (1) hide show
  1. app.py +31 -0
app.py CHANGED
@@ -18,6 +18,37 @@ examples = [["The world's first piece of software was written by a computer scie
18
 
19
  css = """
20
  .footer {display:none !important}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  """
22
 
23
  demo = gr.Interface(fn=get_question, inputs=[gr.Textbox(lines=3, placeholder="Enter text here", label="Context"), gr.Textbox(lines=1, label="Answer")], outputs=gr.Textbox(label="Generated Question"), examples=examples, css=css)
 
18
 
19
  css = """
20
  .footer {display:none !important}
21
+
22
+ .gr-button-primary {
23
+ cursor: pointer !important;
24
+ background: none rgb(17, 20, 45) !important;
25
+ border: none !important;
26
+ text-align: center !important;
27
+ font-family: Poppins !important;
28
+ font-size: 14px !important;
29
+ font-weight: 500 !important;
30
+ color: rgb(255, 255, 255) !important;
31
+ line-height: 1 !important;
32
+ border-radius: 12px !important;
33
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
34
+ box-shadow: none !important;
35
+ }
36
+
37
+ .gr-button-primary:hover{
38
+ cursor: pointer !important;
39
+ background: none rgb(37, 56, 133) !important;
40
+ border: none !important;
41
+ text-align: center !important;
42
+ font-family: Poppins !important;
43
+ font-size: 14px !important;
44
+ font-weight: 500 !important;
45
+ color: rgb(255, 255, 255) !important;
46
+ line-height: 1 !important;
47
+ border-radius: 12px !important;
48
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
49
+ box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
50
+ }
51
+
52
  """
53
 
54
  demo = gr.Interface(fn=get_question, inputs=[gr.Textbox(lines=3, placeholder="Enter text here", label="Context"), gr.Textbox(lines=1, label="Answer")], outputs=gr.Textbox(label="Generated Question"), examples=examples, css=css)