insanecoder69 commited on
Commit
18e3c05
·
verified ·
1 Parent(s): 9039877

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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
- # Temporary path to store the uploaded audio file
15
- audio_file_path = './demo_audio/uploaded_audio.wav'
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
- interface.launch()
 
 
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()