Akbartus commited on
Commit
27b7e09
·
1 Parent(s): c674488

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +49 -1
app.py CHANGED
@@ -35,6 +35,54 @@ inputs = [ gr.Textbox(lines=3, placeholder="Enter context here", label="Input -
35
 
36
  outputs = gr.Textbox(lines=5, label="Output - Generated Questions")
37
 
38
- css = """ .output-markdown{display:none !important} .gr-button-primary { z-index: 14; height: 43px; width: 130px; left: 0px; top: 0px; padding: 0px; cursor: pointer !important; background: none rgb(17, 20, 45) !important; border: none !important; text-align: center !important; font-family: Poppins !important; font-size: 14px !important; font-weight: 500 !important; color: rgb(255, 255, 255) !important; line-height: 1 !important; border-radius: 12px !important; transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important; box-shadow: none !important; } .gr-button-primary:hover{ z-index: 14; height: 43px; width: 130px; left: 0px; top: 0px; padding: 0px; cursor: pointer !important; background: none rgb(37, 56, 133) !important; border: none !important; text-align: center !important; font-family: Poppins !important; font-size: 14px !important; font-weight: 500 !important; color: rgb(255, 255, 255) !important; line-height: 1 !important; border-radius: 12px !important; transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important; box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important; } .hover:bg-orange-50:hover { --tw-bg-opacity: 1 !important; background-color: rgb(229,225,255) !important; } """ demo = gr.Interface( fn=generate_questions, inputs=inputs, outputs=outputs, title="Question Generator | Data Science Dojo", examples=examples, css=css )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  demo.launch()
 
35
 
36
  outputs = gr.Textbox(lines=5, label="Output - Generated Questions")
37
 
38
+ css = """
39
+ .output-markdown{display:none !important}
40
+ .gr-button-primary {
41
+ z-index: 14;
42
+ height: 43px;
43
+ width: 130px;
44
+ left: 0px;
45
+ top: 0px;
46
+ padding: 0px;
47
+ cursor: pointer !important;
48
+ background: none rgb(17, 20, 45) !important;
49
+ border: none !important;
50
+ text-align: center !important;
51
+ font-family: Poppins !important;
52
+ font-size: 14px !important;
53
+ font-weight: 500 !important;
54
+ color: rgb(255, 255, 255) !important;
55
+ line-height: 1 !important;
56
+ border-radius: 12px !important;
57
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
58
+ box-shadow: none !important;
59
+ }
60
+ .gr-button-primary:hover{
61
+ z-index: 14;
62
+ height: 43px;
63
+ width: 130px;
64
+ left: 0px;
65
+ top: 0px;
66
+ padding: 0px;
67
+ cursor: pointer !important;
68
+ background: none rgb(37, 56, 133) !important;
69
+ border: none !important;
70
+ text-align: center !important;
71
+ font-family: Poppins !important;
72
+ font-size: 14px !important;
73
+ font-weight: 500 !important;
74
+ color: rgb(255, 255, 255) !important;
75
+ line-height: 1 !important;
76
+ border-radius: 12px !important;
77
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
78
+ box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
79
+ }
80
+ .hover\:bg-orange-50:hover {
81
+ --tw-bg-opacity: 1 !important;
82
+ background-color: rgb(229,225,255) !important;
83
+ }
84
+ """
85
+
86
+ demo = gr.Interface( fn=generate_questions, inputs=inputs, outputs=outputs, title="Question Generator | Data Science Dojo", examples=examples, css=css )
87
 
88
  demo.launch()