ZhouChuYue
commited on
Commit
Β·
99923d8
1
Parent(s):
453fb4d
fix: Gradio 6.0 compatibility - remove show_copy_button, fix CSS injection
Browse files
app.py
CHANGED
|
@@ -299,7 +299,8 @@ label {
|
|
| 299 |
"""
|
| 300 |
|
| 301 |
# Build Gradio interface
|
| 302 |
-
with gr.Blocks(
|
|
|
|
| 303 |
gr.HTML('<h1 class="main-title">π UltraData Math Parser</h1>')
|
| 304 |
gr.HTML('<p class="subtitle">Unified HTML Parser for Mathematical Content Extraction</p>')
|
| 305 |
|
|
@@ -365,7 +366,6 @@ with gr.Blocks(css=custom_css, title="UltraData Math Parser") as demo:
|
|
| 365 |
max_lines=15,
|
| 366 |
interactive=False,
|
| 367 |
autoscroll=False,
|
| 368 |
-
show_copy_button=True,
|
| 369 |
)
|
| 370 |
with gr.TabItem("π Plain Text"):
|
| 371 |
text_output = gr.Textbox(
|
|
@@ -374,7 +374,6 @@ with gr.Blocks(css=custom_css, title="UltraData Math Parser") as demo:
|
|
| 374 |
max_lines=15,
|
| 375 |
interactive=False,
|
| 376 |
autoscroll=False,
|
| 377 |
-
show_copy_button=True,
|
| 378 |
)
|
| 379 |
with gr.TabItem("ποΈ Preview"):
|
| 380 |
preview_output = gr.HTML(
|
|
|
|
| 299 |
"""
|
| 300 |
|
| 301 |
# Build Gradio interface
|
| 302 |
+
with gr.Blocks(title="UltraData Math Parser") as demo:
|
| 303 |
+
gr.HTML(f'<style>{custom_css}</style>')
|
| 304 |
gr.HTML('<h1 class="main-title">π UltraData Math Parser</h1>')
|
| 305 |
gr.HTML('<p class="subtitle">Unified HTML Parser for Mathematical Content Extraction</p>')
|
| 306 |
|
|
|
|
| 366 |
max_lines=15,
|
| 367 |
interactive=False,
|
| 368 |
autoscroll=False,
|
|
|
|
| 369 |
)
|
| 370 |
with gr.TabItem("π Plain Text"):
|
| 371 |
text_output = gr.Textbox(
|
|
|
|
| 374 |
max_lines=15,
|
| 375 |
interactive=False,
|
| 376 |
autoscroll=False,
|
|
|
|
| 377 |
)
|
| 378 |
with gr.TabItem("ποΈ Preview"):
|
| 379 |
preview_output = gr.HTML(
|