Okutsu1 commited on
Commit
7eaeff5
·
1 Parent(s): abfb2cd
Files changed (1) hide show
  1. lipsync.py +4 -2
lipsync.py CHANGED
@@ -85,10 +85,12 @@ def concat_videos(video_paths: list[str], output_path: str, tmp: str):
85
  def run_latentsync_remote(video_chunk: str, audio_chunk: str) -> str:
86
  from gradio_client import Client, handle_file
87
  client = Client("fffiloni/LatentSync")
 
 
88
  result = client.predict(
89
  handle_file(video_chunk),
90
  handle_file(audio_chunk),
91
- api_name="/main"
92
  )
93
  print(f" → LatentSync returned: {result}")
94
  return result
@@ -158,4 +160,4 @@ def run_lipsync_pipeline(
158
 
159
  size_mb = os.path.getsize(output_path) / (1024 * 1024)
160
  print(f" → Done: {output_path} ({size_mb:.1f} MB)")
161
- return output_path
 
85
  def run_latentsync_remote(video_chunk: str, audio_chunk: str) -> str:
86
  from gradio_client import Client, handle_file
87
  client = Client("fffiloni/LatentSync")
88
+ print(" → LatentSync API schema:")
89
+ print(client.view_api())
90
  result = client.predict(
91
  handle_file(video_chunk),
92
  handle_file(audio_chunk),
93
+ api_name="/predict",
94
  )
95
  print(f" → LatentSync returned: {result}")
96
  return result
 
160
 
161
  size_mb = os.path.getsize(output_path) / (1024 * 1024)
162
  print(f" → Done: {output_path} ({size_mb:.1f} MB)")
163
+ return output_path