Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,6 @@ import gradio as gr
|
|
| 7 |
import base64
|
| 8 |
import os
|
| 9 |
import json
|
| 10 |
-
import html
|
| 11 |
|
| 12 |
def get_editor_html(media_data="[]"):
|
| 13 |
"""μλν° HTML μμ±"""
|
|
@@ -452,7 +451,7 @@ def create_editor_iframe(media_data):
|
|
| 452 |
return f"<iframe srcdoc='{escaped}' style='width:100%;height:800px;border:none;border-radius:12px;'></iframe>"
|
| 453 |
|
| 454 |
|
| 455 |
-
with gr.Blocks(
|
| 456 |
gr.Markdown("## π¬ Simple Video Editor")
|
| 457 |
gr.Markdown("νμΌμ μ
λ‘λνλ©΄ μλμΌλ‘ νμλΌμΈμ μΆκ°λ©λλ€.")
|
| 458 |
|
|
@@ -472,4 +471,4 @@ with gr.Blocks(title="Simple Video Editor", css=".gradio-container{max-width:100
|
|
| 472 |
file_input.change(fn=on_file_upload, inputs=[file_input], outputs=[editor_html])
|
| 473 |
|
| 474 |
if __name__ == "__main__":
|
| 475 |
-
demo.launch(
|
|
|
|
| 7 |
import base64
|
| 8 |
import os
|
| 9 |
import json
|
|
|
|
| 10 |
|
| 11 |
def get_editor_html(media_data="[]"):
|
| 12 |
"""μλν° HTML μμ±"""
|
|
|
|
| 451 |
return f"<iframe srcdoc='{escaped}' style='width:100%;height:800px;border:none;border-radius:12px;'></iframe>"
|
| 452 |
|
| 453 |
|
| 454 |
+
with gr.Blocks() as demo:
|
| 455 |
gr.Markdown("## π¬ Simple Video Editor")
|
| 456 |
gr.Markdown("νμΌμ μ
λ‘λνλ©΄ μλμΌλ‘ νμλΌμΈμ μΆκ°λ©λλ€.")
|
| 457 |
|
|
|
|
| 471 |
file_input.change(fn=on_file_upload, inputs=[file_input], outputs=[editor_html])
|
| 472 |
|
| 473 |
if __name__ == "__main__":
|
| 474 |
+
demo.launch()
|