Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,6 +53,8 @@ from stf_utils import STFPipeline
|
|
53 |
|
54 |
stf_pipeline = STFPipeline()
|
55 |
audio_path="assets/examples/driving/test_aud.mp3"
|
|
|
|
|
56 |
|
57 |
@spaces.GPU(duration=120)
|
58 |
def gpu_wrapped_stf_pipeline_execute(audio_path):
|
@@ -71,7 +73,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
71 |
stf_button.click(
|
72 |
fn=gpu_wrapped_stf_pipeline_execute,
|
73 |
inputs=[
|
74 |
-
|
75 |
],
|
76 |
outputs=[driving_video_path]
|
77 |
)
|
|
|
53 |
|
54 |
stf_pipeline = STFPipeline()
|
55 |
audio_path="assets/examples/driving/test_aud.mp3"
|
56 |
+
audio_path_component = gr.Textbox(label="Input", value="assets/examples/driving/test_aud.mp3")
|
57 |
+
|
58 |
|
59 |
@spaces.GPU(duration=120)
|
60 |
def gpu_wrapped_stf_pipeline_execute(audio_path):
|
|
|
73 |
stf_button.click(
|
74 |
fn=gpu_wrapped_stf_pipeline_execute,
|
75 |
inputs=[
|
76 |
+
audio_path_component
|
77 |
],
|
78 |
outputs=[driving_video_path]
|
79 |
)
|