seawolf2357 commited on
Commit
7b53c4c
Β·
verified Β·
1 Parent(s): 2865f8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -1769,19 +1769,19 @@ with gr.Blocks(title="Video Editor") as demo:
1769
  <p class="subtitle">βœ‚οΈ Edit your videos with timeline, effects & more! πŸŽ₯</p>
1770
  """,
1771
  )
1772
-
1773
- f = gr.File(label="πŸ“ 파일 μ—…λ‘œλ“œ (Video, Image, Audio)", file_count="multiple", file_types=["video", "image", "audio"])
1774
  e = gr.HTML(value=make_iframe([]))
1775
 
1776
  gr.Markdown("---")
1777
- gr.Markdown("### πŸ“₯ MP4 λ³€ν™˜")
1778
- gr.Markdown("μ—λ””ν„°μ—μ„œ '내보내기' β†’ 'MP4λ³€ν™˜μš© 볡사' 클릭 ν›„ μ•„λž˜μ— λΆ™μ—¬λ„£κΈ°")
1779
-
1780
  with gr.Row():
1781
- webm_data = gr.Textbox(label="WebM 데이터 (base64)", placeholder="여기에 λΆ™μ—¬λ„£κΈ° (Ctrl+V)", lines=2, scale=4)
1782
- convert_btn = gr.Button("🎬 MP4 λ³€ν™˜", variant="primary", scale=1)
1783
 
1784
- mp4_output = gr.File(label="πŸ“₯ MP4 λ‹€μš΄λ‘œλ“œ")
1785
 
1786
  f.change(fn=lambda x: make_iframe(process_file(x)), inputs=[f], outputs=[e])
1787
  convert_btn.click(fn=convert_webm_to_mp4, inputs=[webm_data], outputs=[mp4_output])
 
1769
  <p class="subtitle">βœ‚οΈ Edit your videos with timeline, effects & more! πŸŽ₯</p>
1770
  """,
1771
  )
1772
+ f = gr.File(label="πŸ“ Upload Files (Video, Image, Audio)", file_count="multiple", file_types=["video", "image", "audio"])
1773
+
1774
  e = gr.HTML(value=make_iframe([]))
1775
 
1776
  gr.Markdown("---")
1777
+
1778
+ gr.Markdown("### πŸ“₯ MP4 Conversion")
1779
+ gr.Markdown("In editor: 'Export' β†’ 'Copy for MP4' β†’ Paste below")
1780
  with gr.Row():
1781
+ webm_data = gr.Textbox(label="WebM Data (base64)", placeholder="Paste here (Ctrl+V)", lines=2, scale=4)
1782
+ convert_btn = gr.Button("🎬 Convert to MP4", variant="primary", scale=1)
1783
 
1784
+ mp4_output = gr.File(label="πŸ“₯ Download MP4 ")
1785
 
1786
  f.change(fn=lambda x: make_iframe(process_file(x)), inputs=[f], outputs=[e])
1787
  convert_btn.click(fn=convert_webm_to_mp4, inputs=[webm_data], outputs=[mp4_output])