diff --git a/kobo/apps/subsequences/integrations/google/google_transcribe.py b/kobo/apps/subsequences/integrations/google/google_transcribe.py index a1c5d4af75..1401a76166 100644 --- a/kobo/apps/subsequences/integrations/google/google_transcribe.py +++ b/kobo/apps/subsequences/integrations/google/google_transcribe.py @@ -64,13 +64,13 @@ def begin_google_operation(self, xpath, source_lang, target_lang, content): if duration < SYNC_MAX_LENGTH and len(flac_content) < SYNC_MAX_BYTES: logging.info( - f"Synchronous transcription for {submission_uuid=}, {xpath=}" + f'Sync transcription for {submission_uuid=}, {xpath=}' ) # Performance optimization, it's faster directly audio = speech.RecognitionAudio(content=flac_content) elif duration < ASYNC_MAX_LENGTH: logging.info( - f"Starting async transcription for {submission_uuid=}, {xpath=}" + f'Async transcription for {submission_uuid=}, {xpath=}' ) # Store larger files on gcloud gcs_path = self.store_file(flac_content) diff --git a/kobo/apps/subsequences/tests/test_nlp_integration.py b/kobo/apps/subsequences/tests/test_nlp_integration.py index d5e875f2cb..50b821d52b 100644 --- a/kobo/apps/subsequences/tests/test_nlp_integration.py +++ b/kobo/apps/subsequences/tests/test_nlp_integration.py @@ -106,7 +106,7 @@ def test_transcription_requested( content={ 'ask_a_question': { GOOGLETS: { - "status":"requested","languageCode":"en" + 'status': 'requested', 'languageCode': 'en' } } } @@ -122,7 +122,7 @@ def test_transcription_requested( content={ 'ask_a_question': { GOOGLETX: { - "status":"requested","languageCode":"en" + 'status':'requested','languageCode':'en' } } }