Update app.py
Browse files
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 |
-
|
| 1774 |
e = gr.HTML(value=make_iframe([]))
|
| 1775 |
|
| 1776 |
gr.Markdown("---")
|
| 1777 |
-
|
| 1778 |
-
gr.Markdown("
|
| 1779 |
-
|
| 1780 |
with gr.Row():
|
| 1781 |
-
webm_data = gr.Textbox(label="WebM
|
| 1782 |
-
convert_btn = gr.Button("π¬
|
| 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])
|