openfree commited on
Commit
ee642fe
ยท
verified ยท
1 Parent(s): b25c837

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -16
app.py CHANGED
@@ -1053,8 +1053,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as iface:
1053
  inputs=[txt2vid_prompt, txt2vid_enhance_toggle],
1054
  outputs=txt2vid_prompt
1055
  )
1056
-
1057
- # Event handlers ๋ถ€๋ถ„ ์ˆ˜์ •
1058
  txt2vid_generate.click(
1059
  fn=generate_video_from_text,
1060
  inputs=[
@@ -1062,18 +1062,16 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as iface:
1062
  txt2vid_enhance_toggle, # ํ”„๋กฌํ”„ํŠธ ๊ฐœ์„  ํ† ๊ธ€
1063
  txt2vid_negative_prompt, # ๋„ค๊ฑฐํ‹ฐ๋ธŒ ํ”„๋กฌํ”„ํŠธ
1064
  txt2vid_frame_rate, # ํ”„๋ ˆ์ž„ ๋ ˆ์ดํŠธ
1065
- txt2vid_advanced[0], # seed
1066
- txt2vid_advanced[1], # inference_steps
1067
- txt2vid_advanced[2], # guidance_scale
1068
- height_slider, # height
1069
- width_slider, # width
1070
- num_frames_slider, # num_frames
1071
  ],
1072
  outputs=txt2vid_output,
1073
  api_name="generate_text_to_video"
1074
  )
1075
 
1076
- # Image to Video ์ด๋ฒคํŠธ ํ•ธ๋“ค๋Ÿฌ ์ˆ˜์ •
1077
  img2vid_generate.click(
1078
  fn=generate_video_from_image,
1079
  inputs=[
@@ -1082,17 +1080,14 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as iface:
1082
  img2vid_enhance_toggle, # ํ”„๋กฌํ”„ํŠธ ๊ฐœ์„  ํ† ๊ธ€
1083
  img2vid_negative_prompt, # ๋„ค๊ฑฐํ‹ฐ๋ธŒ ํ”„๋กฌํ”„ํŠธ
1084
  img2vid_frame_rate, # ํ”„๋ ˆ์ž„ ๋ ˆ์ดํŠธ
1085
- img2vid_advanced[0], # seed
1086
- img2vid_advanced[1], # inference_steps
1087
- img2vid_advanced[2], # guidance_scale
1088
- height_slider, # height
1089
- width_slider, # width
1090
- num_frames_slider, # num_frames
1091
  ],
1092
  outputs=img2vid_output,
1093
  api_name="generate_image_to_video"
1094
  )
1095
-
1096
 
1097
 
1098
  img2vid_enhance_toggle.change(
 
1053
  inputs=[txt2vid_prompt, txt2vid_enhance_toggle],
1054
  outputs=txt2vid_prompt
1055
  )
1056
+ # Event handlers ์ˆ˜์ •
1057
+ # Text to Video Tab handlers
1058
  txt2vid_generate.click(
1059
  fn=generate_video_from_text,
1060
  inputs=[
 
1062
  txt2vid_enhance_toggle, # ํ”„๋กฌํ”„ํŠธ ๊ฐœ์„  ํ† ๊ธ€
1063
  txt2vid_negative_prompt, # ๋„ค๊ฑฐํ‹ฐ๋ธŒ ํ”„๋กฌํ”„ํŠธ
1064
  txt2vid_frame_rate, # ํ”„๋ ˆ์ž„ ๋ ˆ์ดํŠธ
1065
+ *txt2vid_advanced[:3], # seed, inference_steps, guidance_scale
1066
+ txt2vid_current_height, # height
1067
+ txt2vid_current_width, # width
1068
+ txt2vid_current_num_frames, # num_frames
 
 
1069
  ],
1070
  outputs=txt2vid_output,
1071
  api_name="generate_text_to_video"
1072
  )
1073
 
1074
+ # Image to Video Tab handlers
1075
  img2vid_generate.click(
1076
  fn=generate_video_from_image,
1077
  inputs=[
 
1080
  img2vid_enhance_toggle, # ํ”„๋กฌํ”„ํŠธ ๊ฐœ์„  ํ† ๊ธ€
1081
  img2vid_negative_prompt, # ๋„ค๊ฑฐํ‹ฐ๋ธŒ ํ”„๋กฌํ”„ํŠธ
1082
  img2vid_frame_rate, # ํ”„๋ ˆ์ž„ ๋ ˆ์ดํŠธ
1083
+ *img2vid_advanced[:3], # seed, inference_steps, guidance_scale
1084
+ img2vid_current_height, # height
1085
+ img2vid_current_width, # width
1086
+ img2vid_current_num_frames, # num_frames
 
 
1087
  ],
1088
  outputs=img2vid_output,
1089
  api_name="generate_image_to_video"
1090
  )
 
1091
 
1092
 
1093
  img2vid_enhance_toggle.change(