Spaces:
Running
on
A10G
Running
on
A10G
Zhouyan248
commited on
Commit
•
cfeaf61
1
Parent(s):
1dade9e
Update base/app.py
Browse files- base/app.py +2 -5
base/app.py
CHANGED
@@ -78,12 +78,9 @@ def infer(prompt, seed_inp, ddim_steps,cfg, infer_type):
|
|
78 |
|
79 |
return args.output_folder + prompt[0:30].replace(' ', '_') + '-'+str(seed_inp)+'-'+str(ddim_steps)+'-'+str(cfg)+ '-.mp4'
|
80 |
|
81 |
-
print(1)
|
82 |
|
83 |
# def clean():
|
84 |
-
# return gr.
|
85 |
-
def clean():
|
86 |
-
return gr.Video.update(value=None)
|
87 |
|
88 |
title = """
|
89 |
<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
@@ -123,7 +120,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
123 |
|
124 |
with gr.Column():
|
125 |
submit_btn = gr.Button("Generate video")
|
126 |
-
clean_btn = gr.Button("Clean video")
|
127 |
video_out = gr.Video(label="Video result", elem_id="video-output")
|
128 |
|
129 |
inputs = [prompt, seed_inp, ddim_steps, cfg, infer_type]
|
|
|
78 |
|
79 |
return args.output_folder + prompt[0:30].replace(' ', '_') + '-'+str(seed_inp)+'-'+str(ddim_steps)+'-'+str(cfg)+ '-.mp4'
|
80 |
|
|
|
81 |
|
82 |
# def clean():
|
83 |
+
# return gr.Video.update(value=None)
|
|
|
|
|
84 |
|
85 |
title = """
|
86 |
<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
|
|
120 |
|
121 |
with gr.Column():
|
122 |
submit_btn = gr.Button("Generate video")
|
123 |
+
# clean_btn = gr.Button("Clean video")
|
124 |
video_out = gr.Video(label="Video result", elem_id="video-output")
|
125 |
|
126 |
inputs = [prompt, seed_inp, ddim_steps, cfg, infer_type]
|