Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
#
|
| 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[
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 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[
|
| 1086 |
-
|
| 1087 |
-
|
| 1088 |
-
|
| 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(
|