Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|