openfree commited on
Commit
c720814
Β·
verified Β·
1 Parent(s): 962bf3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -50,11 +50,23 @@ system_prompt_i2v = """당신은 이미지 기반 λΉ„λ””μ˜€ 생성을 μœ„ν•œ ν”„
50
  촬영 감독이 촬영 λͺ©λ‘μ„ μ„€λͺ…ν•˜λŠ” κ²ƒμ²˜λŸΌ ꡬ체적이고 μ‹œκ°μ μœΌλ‘œ μž‘μ„±ν•˜μ„Έμš”.
51
  200단어λ₯Ό λ„˜μ§€ μ•Šλ„λ‘ ν•˜λ˜, μ΅œλŒ€ν•œ μƒμ„Έν•˜κ²Œ μž‘μ„±ν•˜μ„Έμš”."""
52
 
53
- # Updated preset options
 
 
 
 
 
 
 
 
 
 
 
 
54
  preset_options = [
55
  # 16:9 λΉ„μœ¨ (μ΅œλŒ€/μ΅œμ†Œ)
56
  {"label": "16:9 HD (1216x684)", "width": 1216, "height": 684, "num_frames": 41, "aspect": "16:9"},
57
- {"label": "16:9 (640x360)", "width": 640, "height": 360, "num_frames": 81, "aspect": "16:9"},
58
 
59
  # 4:3 λΉ„μœ¨ (μ΅œλŒ€/μ΅œμ†Œ)
60
  {"label": "4:3 (1024x768)", "width": 1024, "height": 768, "num_frames": 49, "aspect": "4:3"},
@@ -499,7 +511,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
499
  lines=5,
500
  )
501
  txt2vid_enhance_toggle = Toggle(
502
- label="ν”„λ‘¬ν”„νŠΈ κ°œμ„ ",
503
  value=False,
504
  interactive=True,
505
  )
 
50
  촬영 감독이 촬영 λͺ©λ‘μ„ μ„€λͺ…ν•˜λŠ” κ²ƒμ²˜λŸΌ ꡬ체적이고 μ‹œκ°μ μœΌλ‘œ μž‘μ„±ν•˜μ„Έμš”.
51
  200단어λ₯Ό λ„˜μ§€ μ•Šλ„λ‘ ν•˜λ˜, μ΅œλŒ€ν•œ μƒμ„Έν•˜κ²Œ μž‘μ„±ν•˜μ„Έμš”."""
52
 
53
+ # Default preset
54
+ default_preset = "16:9 (512x320)"
55
+
56
+ # ν˜„μž¬ μ„ νƒλœ 값듀을 μ €μž₯ν•  μƒνƒœ λ³€μˆ˜λ“€ μˆ˜μ •
57
+ txt2vid_current_height = gr.State(value=320)
58
+ txt2vid_current_width = gr.State(value=512)
59
+ txt2vid_current_num_frames = gr.State(value=81)
60
+
61
+ img2vid_current_height = gr.State(value=320)
62
+ img2vid_current_width = gr.State(value=512)
63
+ img2vid_current_num_frames = gr.State(value=81)
64
+
65
+ # preset_options μˆ˜μ • - 16:9 μ΅œμ†Œ 크기 λ³€κ²½
66
  preset_options = [
67
  # 16:9 λΉ„μœ¨ (μ΅œλŒ€/μ΅œμ†Œ)
68
  {"label": "16:9 HD (1216x684)", "width": 1216, "height": 684, "num_frames": 41, "aspect": "16:9"},
69
+ {"label": "16:9 (512x320)", "width": 512, "height": 320, "num_frames": 81, "aspect": "16:9"}, # λ³€κ²½λœ λΆ€λΆ„
70
 
71
  # 4:3 λΉ„μœ¨ (μ΅œλŒ€/μ΅œμ†Œ)
72
  {"label": "4:3 (1024x768)", "width": 1024, "height": 768, "num_frames": 49, "aspect": "4:3"},
 
511
  lines=5,
512
  )
513
  txt2vid_enhance_toggle = Toggle(
514
+ label="ν”„λ‘¬ν”„νŠΈ 증강",
515
  value=False,
516
  interactive=True,
517
  )