Format Python code with psf/black push

github-actions 2 years ago
parent 6c4438de45
commit c1aea39db1

@ -115,10 +115,13 @@ class TranscribeService(discord.Cog, name="TranscribeService"):
await response_message.delete() await response_message.delete()
return return
await response_message.edit(embed=EmbedStatics.build_transcribe_success_embed(response)) await response_message.edit(
embed=EmbedStatics.build_transcribe_success_embed(response)
)
except Exception as e: except Exception as e:
await response_message.edit(embed=EmbedStatics.build_transcribe_failed_embed(str(e))) await response_message.edit(
embed=EmbedStatics.build_transcribe_failed_embed(str(e))
)
async def transcribe_file_command( async def transcribe_file_command(
self, self,
@ -152,7 +155,6 @@ class TranscribeService(discord.Cog, name="TranscribeService"):
embed=EmbedStatics.build_transcribe_progress_embed() embed=EmbedStatics.build_transcribe_progress_embed()
) )
try: try:
response = await self.model.send_transcription_request( response = await self.model.send_transcription_request(
file, temperature, user_api_key file, temperature, user_api_key

Loading…
Cancel
Save