Spaces:
Running
Running
feat: html view textbox
Browse files
app.py
CHANGED
|
@@ -454,6 +454,16 @@ with demo:
|
|
| 454 |
""",
|
| 455 |
)
|
| 456 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 457 |
process_btn.click(
|
| 458 |
fn=predict_decompose_group,
|
| 459 |
inputs=[svg_file, svg_text, object_name],
|
|
@@ -482,7 +492,10 @@ with demo:
|
|
| 482 |
describe_animation,
|
| 483 |
svg_content_hidden,
|
| 484 |
],
|
| 485 |
-
outputs=[
|
|
|
|
|
|
|
|
|
|
| 486 |
)
|
| 487 |
if __name__ == "__main__":
|
| 488 |
demo.launch(share=True)
|
|
|
|
| 454 |
""",
|
| 455 |
)
|
| 456 |
|
| 457 |
+
with gr.Column():
|
| 458 |
+
with gr.Row(scale=1):
|
| 459 |
+
with gr.Column(scale=1):
|
| 460 |
+
gr.Markdown("## 📂 HTML Output")
|
| 461 |
+
output_html = gr.Textbox(
|
| 462 |
+
label="Output HTML",
|
| 463 |
+
lines=10,
|
| 464 |
+
placeholder="Generated HTML will be saved here.",
|
| 465 |
+
)
|
| 466 |
+
|
| 467 |
process_btn.click(
|
| 468 |
fn=predict_decompose_group,
|
| 469 |
inputs=[svg_file, svg_text, object_name],
|
|
|
|
| 492 |
describe_animation,
|
| 493 |
svg_content_hidden,
|
| 494 |
],
|
| 495 |
+
outputs=[
|
| 496 |
+
animation_preview,
|
| 497 |
+
output_html
|
| 498 |
+
],
|
| 499 |
)
|
| 500 |
if __name__ == "__main__":
|
| 501 |
demo.launch(share=True)
|