Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def classify(text: str):
|
|
| 33 |
# --------------------------
|
| 34 |
# UI with Tabs
|
| 35 |
# --------------------------
|
| 36 |
-
with gr.Blocks(fill_height=True
|
| 37 |
gr.HTML("<div style='height:8px;'></div>")
|
| 38 |
|
| 39 |
# ===== Analyzer tab =====
|
|
@@ -257,28 +257,6 @@ with gr.Blocks(fill_height=True, css=custom_css) as demo:
|
|
| 257 |
inputs=[fb_type, fb_text, fb_email, fb_checkbox],
|
| 258 |
outputs=fb_status,
|
| 259 |
)
|
| 260 |
-
def apply_padding():
|
| 261 |
-
pass
|
| 262 |
|
| 263 |
-
demo.load(
|
| 264 |
-
fn=None,
|
| 265 |
-
js="""
|
| 266 |
-
() => {
|
| 267 |
-
function padCards() {
|
| 268 |
-
document.querySelectorAll('.glass-card').forEach(function(card) {
|
| 269 |
-
card.style.setProperty('padding', '20px 22px', 'important');
|
| 270 |
-
var form = card.querySelector('.form');
|
| 271 |
-
if (form) {
|
| 272 |
-
form.style.setProperty('padding', '20px 22px', 'important');
|
| 273 |
-
form.style.setProperty('gap', '12px', 'important');
|
| 274 |
-
}
|
| 275 |
-
});
|
| 276 |
-
}
|
| 277 |
-
padCards();
|
| 278 |
-
setTimeout(padCards, 300);
|
| 279 |
-
setTimeout(padCards, 800);
|
| 280 |
-
}
|
| 281 |
-
"""
|
| 282 |
-
)
|
| 283 |
if __name__ == "__main__":
|
| 284 |
-
demo.launch(theme=gr.themes.Soft())
|
|
|
|
| 33 |
# --------------------------
|
| 34 |
# UI with Tabs
|
| 35 |
# --------------------------
|
| 36 |
+
with gr.Blocks(fill_height=True) as demo:
|
| 37 |
gr.HTML("<div style='height:8px;'></div>")
|
| 38 |
|
| 39 |
# ===== Analyzer tab =====
|
|
|
|
| 257 |
inputs=[fb_type, fb_text, fb_email, fb_checkbox],
|
| 258 |
outputs=fb_status,
|
| 259 |
)
|
|
|
|
|
|
|
| 260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
if __name__ == "__main__":
|
| 262 |
+
demo.launch(css=custom_css, theme=gr.themes.Soft())
|