Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,13 +52,29 @@ print("LD_LIBRARY_PATH:", os.environ['LD_LIBRARY_PATH'])
|
|
52 |
from stf_utils import STFPipeline
|
53 |
|
54 |
stf_pipeline = STFPipeline()
|
|
|
55 |
|
56 |
@spaces.GPU(duration=120)
|
57 |
def gpu_wrapped_stf_pipeline_execute(audio_path):
|
58 |
return stf_pipeline.execute(audio_path)
|
59 |
|
60 |
|
|
|
|
|
|
|
|
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
|
64 |
|
|
|
52 |
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):
|
59 |
return stf_pipeline.execute(audio_path)
|
60 |
|
61 |
|
62 |
+
###### 테스트중 ######
|
63 |
+
|
64 |
+
|
65 |
+
stf_pipeline = STFPipeline()
|
66 |
|
67 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
68 |
+
stf_button = gr.Button("stf test", variant="primary")
|
69 |
+
stf_button.click(
|
70 |
+
fn=gpu_wrapped_stf_pipeline_execute,
|
71 |
+
inputs=[
|
72 |
+
audio_path
|
73 |
+
],
|
74 |
+
outputs=[driving_video_path]
|
75 |
+
)
|
76 |
+
|
77 |
+
###### 테스트중 ######
|
78 |
|
79 |
|
80 |
|