Skip to content

Commit 53694d6

Browse files
committed
format of files
1 parent 09e8365 commit 53694d6

6 files changed

Lines changed: 3 additions & 10 deletions

File tree

decart/lipsync/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424

2525
class RealtimeLipsyncClient:
26-
2726
DECART_LIPSYNC_ENDPOINT = "/router/lipsync/ws"
2827
VIDEO_FPS = 25
2928

decart/realtime/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def _emit_error(self, error: DecartSDKError) -> None:
7979
except Exception as e:
8080
logger.exception(f"Error in error callback: {e}")
8181

82-
async def set_prompt(
83-
self, prompt: str, enrich: bool = True, max_timeout: float = 15.0
84-
) -> None:
82+
async def set_prompt(self, prompt: str, enrich: bool = True, max_timeout: float = 15.0) -> None:
8583
if not prompt or not prompt.strip():
8684
raise InvalidInputError("Prompt cannot be empty")
8785
if max_timeout <= 0 or max_timeout > 60:

decart/realtime/webrtc_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def __init__(
3737
on_error: Optional[Callable[[Exception], None]] = None,
3838
customize_offer: Optional[Callable] = None,
3939
):
40-
4140
self._pc: Optional[RTCPeerConnection] = None
4241
self._ws: Optional[aiohttp.ClientWebSocketResponse] = None
4342
self._session: Optional[aiohttp.ClientSession] = None

examples/lipsync_file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ async def process_lipsync(video_path: str, audio_path: str, output_path: str):
7272
)
7373
for i in range(frame_count):
7474
try:
75-
7675
video_frame, audio_frame = await client.get_synced_output(timeout=1.0)
7776
bgr_frame = cv2.cvtColor(video_frame, cv2.COLOR_RGB2BGR)
7877
out.write(bgr_frame)

tests/test_realtime_unit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ async def test_realtime_client_creation_with_mock():
5959
prompt_result = {"success": True, "error": None}
6060
prompt_event.set()
6161

62-
mock_manager.register_prompt_wait = MagicMock(
63-
return_value=(prompt_event, prompt_result)
64-
)
62+
mock_manager.register_prompt_wait = MagicMock(return_value=(prompt_event, prompt_result))
6563
mock_manager.unregister_prompt_wait = MagicMock()
6664
mock_manager_class.return_value = mock_manager
6765

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)