Skip to content

Commit

Permalink
[FIX] code_review
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Cordoba Leal authored and Hugo Cordoba Leal committed Jul 22, 2024
1 parent c0f98a8 commit 02c214c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions API-Samples/Python/VideoIndexerClient/VideoIndexerClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ def get_textual_summary(self, video_id:str, deployment_name:str, lenght:str, sty
:param video_id: The video ID
:param deploymentName: The name of the deployment
:param length: The length of the summary
:param style: The style of the summary
:param length: The length of the summary. Allowed values: Medium / Short / Long
:param style: The style of the summary. Allowed values: Neutral / Casual / Formal
'''

self.get_account_async() # if account is not initialized, get it
Expand Down Expand Up @@ -453,8 +453,8 @@ def get_textual_summary(self, video_id:str, deployment_name:str, lenght:str, sty
print(f"Error getting video summary status: {e}")
return
if video_state == 'Processed':
print(f'Here is the textual summary of the video: \n{video_result}')
break
print('Here is the textual summary of the video: \n')
return video_result
elif video_state == 'Failed':
print(f"Text summary failed for video ID {video_id}.")
break
Expand Down

0 comments on commit 02c214c

Please sign in to comment.