seawolf2357 commited on
Commit
f725e82
Β·
verified Β·
1 Parent(s): 86017ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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(title="Simple Video Editor", css=".gradio-container{max-width:100%!important}") as demo:
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(server_name="0.0.0.0", server_port=7860)
 
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()