From 802f2c248e2bceae93bfcd7ea36f27838aff482c Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 11 Aug 2023 16:18:39 +0200 Subject: [PATCH] server: remove print --- server/reflector/processors/audio_transcript_modal.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/reflector/processors/audio_transcript_modal.py b/server/reflector/processors/audio_transcript_modal.py index a058df77..4d1dac2d 100644 --- a/server/reflector/processors/audio_transcript_modal.py +++ b/server/reflector/processors/audio_transcript_modal.py @@ -48,7 +48,7 @@ class AudioTranscriptModalProcessor(AudioTranscriptProcessor): async def _transcript(self, data: AudioFile): async with httpx.AsyncClient() as client: - print(f"Try to transcribe audio {data.path.name}") + self.logger.debug(f"Try to transcribe audio {data.path.name}") files = { "file": (data.path.name, data.path.open("rb")), } @@ -59,7 +59,9 @@ class AudioTranscriptModalProcessor(AudioTranscriptProcessor): headers=self.headers, ) - print(f"Transcript response: {response.status_code} {response.content}") + self.logger.debug( + f"Transcript response: {response.status_code} {response.content}" + ) response.raise_for_status() result = response.json() transcript = Transcript(