Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -841,18 +841,18 @@ def cleanup():
|
|
841 |
"""메모리 정리 함수"""
|
842 |
torch.cuda.empty_cache()
|
843 |
gc.collect()
|
844 |
-
|
845 |
-
# Gradio Interface Definition
|
846 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as iface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
847 |
|
848 |
-
# State 변수들의 초기화 수정
|
849 |
-
txt2vid_current_height = gr.State(value=320)
|
850 |
-
txt2vid_current_width = gr.State(value=512)
|
851 |
-
txt2vid_current_num_frames = gr.State(value=257)
|
852 |
|
853 |
-
img2vid_current_height = gr.State(value=320)
|
854 |
-
img2vid_current_width = gr.State(value=512)
|
855 |
-
img2vid_current_num_frames = gr.State(value=257)
|
856 |
|
857 |
with gr.Tabs():
|
858 |
# Text to Video Tab
|
|
|
841 |
"""메모리 정리 함수"""
|
842 |
torch.cuda.empty_cache()
|
843 |
gc.collect()
|
844 |
+
|
|
|
845 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as iface:
|
846 |
+
# State 변수들의 초기화
|
847 |
+
txt2vid_current_height = gr.State(value=320)
|
848 |
+
txt2vid_current_width = gr.State(value=512)
|
849 |
+
txt2vid_current_num_frames = gr.State(value=257)
|
850 |
+
|
851 |
+
img2vid_current_height = gr.State(value=320)
|
852 |
+
img2vid_current_width = gr.State(value=512)
|
853 |
+
img2vid_current_num_frames = gr.State(value=257)
|
854 |
|
|
|
|
|
|
|
|
|
855 |
|
|
|
|
|
|
|
856 |
|
857 |
with gr.Tabs():
|
858 |
# Text to Video Tab
|