Skip to content

Commit

Permalink
remove double quotes and minor changes to logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Guitlle committed Aug 12, 2024
1 parent 840be4d commit 215f926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions kobo/apps/subsequences/tests/test_nlp_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_transcription_requested(
content={
'ask_a_question': {
GOOGLETS: {
"status":"requested","languageCode":"en"
'status': 'requested', 'languageCode': 'en'
}
}
}
Expand All @@ -122,7 +122,7 @@ def test_transcription_requested(
content={
'ask_a_question': {
GOOGLETX: {
"status":"requested","languageCode":"en"
'status':'requested','languageCode':'en'
}
}
}
Expand Down

0 comments on commit 215f926

Please sign in to comment.