Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ def infer(video_in, chosen_model):
|
|
| 180 |
audio_result = get_tango(caption)
|
| 181 |
|
| 182 |
final_res = blend_vsfx(video_in, audio_result)
|
| 183 |
-
return gr.update(value=caption, interactive=True), gr.update(
|
| 184 |
|
| 185 |
def retry(edited_prompt, video_in, chosen_model):
|
| 186 |
image_in = extract_firstframe(video_in)
|
|
@@ -198,7 +198,7 @@ def retry(edited_prompt, video_in, chosen_model):
|
|
| 198 |
return audio_result, final_res
|
| 199 |
|
| 200 |
def refresh():
|
| 201 |
-
return gr.update(value=None, interactive=False), gr.update(
|
| 202 |
|
| 203 |
css="""
|
| 204 |
#col-container{
|
|
@@ -227,7 +227,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 227 |
submit_btn = gr.Button("Submit", scale=0)
|
| 228 |
with gr.Column():
|
| 229 |
caption_o = gr.Textbox(label="Scene caption", interactive=False)
|
| 230 |
-
retry_btn = gr.Button("Retry with edited prompt",
|
| 231 |
audio_o = gr.Audio(label="Audio output")
|
| 232 |
with gr.Column():
|
| 233 |
video_o = gr.Video(label="Video with soundFX")
|
|
|
|
| 180 |
audio_result = get_tango(caption)
|
| 181 |
|
| 182 |
final_res = blend_vsfx(video_in, audio_result)
|
| 183 |
+
return gr.update(value=caption, interactive=True), gr.update(interactive=True), audio_result, final_res
|
| 184 |
|
| 185 |
def retry(edited_prompt, video_in, chosen_model):
|
| 186 |
image_in = extract_firstframe(video_in)
|
|
|
|
| 198 |
return audio_result, final_res
|
| 199 |
|
| 200 |
def refresh():
|
| 201 |
+
return gr.update(value=None, interactive=False), gr.update(interactive=False), gr.update(value=None), gr.update(value=None)
|
| 202 |
|
| 203 |
css="""
|
| 204 |
#col-container{
|
|
|
|
| 227 |
submit_btn = gr.Button("Submit", scale=0)
|
| 228 |
with gr.Column():
|
| 229 |
caption_o = gr.Textbox(label="Scene caption", interactive=False)
|
| 230 |
+
retry_btn = gr.Button("Retry with edited prompt", interactive=False)
|
| 231 |
audio_o = gr.Audio(label="Audio output")
|
| 232 |
with gr.Column():
|
| 233 |
video_o = gr.Video(label="Video with soundFX")
|