Spaces:
Runtime error
Runtime error
EliottZemour
commited on
Commit
·
6a78287
1
Parent(s):
f1ded69
update app
Browse files
app.py
CHANGED
@@ -41,23 +41,6 @@ CSS = """
|
|
41 |
#url-textbox {
|
42 |
padding: 0 !important;
|
43 |
}
|
44 |
-
#short-upload-box .w-full {
|
45 |
-
min-height: 10rem !important;
|
46 |
-
}
|
47 |
-
/* I think something like this can be used to re-shape
|
48 |
-
* the table
|
49 |
-
*/
|
50 |
-
/*
|
51 |
-
.gr-samples-table tr {
|
52 |
-
display: inline;
|
53 |
-
}
|
54 |
-
.gr-samples-table .p-2 {
|
55 |
-
width: 100px;
|
56 |
-
}
|
57 |
-
*/
|
58 |
-
#select-a-file {
|
59 |
-
width: 100%;
|
60 |
-
}
|
61 |
#file-clear {
|
62 |
padding-top: 2px !important;
|
63 |
padding-bottom: 2px !important;
|
@@ -142,7 +125,7 @@ with demo:
|
|
142 |
elem_id="url-textbox",
|
143 |
)
|
144 |
button = gr.Button("Generate card", variant="primary")
|
145 |
-
clear_button = gr.Button("Clear"
|
146 |
with gr.Row():
|
147 |
card = gr.HTML()
|
148 |
|
@@ -154,7 +137,7 @@ with demo:
|
|
154 |
|
155 |
clear_button.click(
|
156 |
lambda _: (
|
157 |
-
|
158 |
None,
|
159 |
None,
|
160 |
gr.update(visible=False),
|
|
|
41 |
#url-textbox {
|
42 |
padding: 0 !important;
|
43 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
#file-clear {
|
45 |
padding-top: 2px !important;
|
46 |
padding-bottom: 2px !important;
|
|
|
125 |
elem_id="url-textbox",
|
126 |
)
|
127 |
button = gr.Button("Generate card", variant="primary")
|
128 |
+
clear_button = gr.Button("Clear")
|
129 |
with gr.Row():
|
130 |
card = gr.HTML()
|
131 |
|
|
|
137 |
|
138 |
clear_button.click(
|
139 |
lambda _: (
|
140 |
+
None,
|
141 |
None,
|
142 |
None,
|
143 |
gr.update(visible=False),
|