Milhaud commited on
Commit
aac83c6
·
1 Parent(s): f9821eb

feat: html view textbox

Browse files
Files changed (1) hide show
  1. app.py +14 -1
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=[animation_preview],
 
 
 
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)