Spaces:
Running
on
A10G
Running
on
A10G
Commit
•
a0b90fa
1
Parent(s):
1c137a4
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def convert_mp4_to_frames(video_path, duration=3):
|
|
56 |
|
57 |
return frames
|
58 |
|
59 |
-
def infer(prompt, video_in, denoise_strength,
|
60 |
if secret_token != SECRET_TOKEN:
|
61 |
raise gr.Error(
|
62 |
f'Invalid secret token. Please fork the original space if you want to use it for yourself.')
|
@@ -80,7 +80,7 @@ with gr.Blocks() as demo:
|
|
80 |
video_in = gr.Video(type="numpy", source="upload")
|
81 |
prompt_in = gr.Textbox(label="Prompt", elem_id="prompt-in")
|
82 |
denoise_strength = gr.Slider(label="Denoise strength", minimum=0.6, maximum=0.9, step=0.01, value=0.66)
|
83 |
-
duration = gr.Slider(label="Duration", minimum=0.5, maximum=3, step=0.5, value=3)
|
84 |
#inference_steps = gr.Slider(label="Inference Steps", minimum=7, maximum=100, step=1, value=40, interactive=False)
|
85 |
submit_btn = gr.Button("Submit")
|
86 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|
|
|
56 |
|
57 |
return frames
|
58 |
|
59 |
+
def infer(prompt, video_in, denoise_strength, secret_token):
|
60 |
if secret_token != SECRET_TOKEN:
|
61 |
raise gr.Error(
|
62 |
f'Invalid secret token. Please fork the original space if you want to use it for yourself.')
|
|
|
80 |
video_in = gr.Video(type="numpy", source="upload")
|
81 |
prompt_in = gr.Textbox(label="Prompt", elem_id="prompt-in")
|
82 |
denoise_strength = gr.Slider(label="Denoise strength", minimum=0.6, maximum=0.9, step=0.01, value=0.66)
|
83 |
+
#duration = gr.Slider(label="Duration", minimum=0.5, maximum=3, step=0.5, value=3)
|
84 |
#inference_steps = gr.Slider(label="Inference Steps", minimum=7, maximum=100, step=1, value=40, interactive=False)
|
85 |
submit_btn = gr.Button("Submit")
|
86 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|