Spaces:
Runtime error
Runtime error
Commit
·
5814198
1
Parent(s):
31c0b73
Update app.py
Browse filesupdated footer and examples styling
app.py
CHANGED
@@ -17,7 +17,7 @@ def get_question(context, answer, max_length=64):
|
|
17 |
examples = [["The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948.", "1948"], ["The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948.", "Tom Kilburn"], ["The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948.", "computer scientist"]]
|
18 |
|
19 |
css = """
|
20 |
-
|
21 |
.output-markdown{display:none !important}
|
22 |
|
23 |
.gr-button-primary {
|
@@ -62,6 +62,11 @@ css = """
|
|
62 |
box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
65 |
"""
|
66 |
|
67 |
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"), title="Question Generator | Datascience Dojo", examples=examples, css=css)
|
|
|
17 |
examples = [["The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948.", "1948"], ["The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948.", "Tom Kilburn"], ["The world's first piece of software was written by a computer scientist named Tom Kilburn in 1948.", "computer scientist"]]
|
18 |
|
19 |
css = """
|
20 |
+
footer {display:none !important}
|
21 |
.output-markdown{display:none !important}
|
22 |
|
23 |
.gr-button-primary {
|
|
|
62 |
box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
|
63 |
}
|
64 |
|
65 |
+
.hover\:bg-orange-50:hover {
|
66 |
+
--tw-bg-opacity: 1 !important;
|
67 |
+
background-color: rgb(229,225,255) !important;
|
68 |
+
}
|
69 |
+
|
70 |
"""
|
71 |
|
72 |
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"), title="Question Generator | Datascience Dojo", examples=examples, css=css)
|