Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,12 +11,9 @@ def run_talkshow_model(audio_file):
|
|
11 |
body_model_name = 's2g_LS3DCG'
|
12 |
body_model_path = 'experiments/2022-10-19-smplx_S2G-LS3DCG/ckpt-99.pth'
|
13 |
|
14 |
-
#
|
15 |
-
audio_file_path =
|
16 |
-
|
17 |
-
# Save the uploaded audio file to the expected location
|
18 |
-
audio_file.save(audio_file_path)
|
19 |
-
|
20 |
# Run the demo.py script with the necessary arguments
|
21 |
command = [
|
22 |
'python', demo_script,
|
@@ -44,4 +41,5 @@ interface = gr.Interface(
|
|
44 |
)
|
45 |
|
46 |
# Launch the interface
|
47 |
-
|
|
|
|
11 |
body_model_name = 's2g_LS3DCG'
|
12 |
body_model_path = 'experiments/2022-10-19-smplx_S2G-LS3DCG/ckpt-99.pth'
|
13 |
|
14 |
+
# Path of the uploaded audio file
|
15 |
+
audio_file_path = audio_file # This is the file path returned by Gradio
|
16 |
+
|
|
|
|
|
|
|
17 |
# Run the demo.py script with the necessary arguments
|
18 |
command = [
|
19 |
'python', demo_script,
|
|
|
41 |
)
|
42 |
|
43 |
# Launch the interface
|
44 |
+
if __name__ == "__main__":
|
45 |
+
interface.launch()
|