Skip to content

Commit 02c214c

Browse files
Hugo Cordoba LealHugo Cordoba Leal
authored andcommitted
[FIX] code_review
1 parent c0f98a8 commit 02c214c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

API-Samples/Python/VideoIndexerClient/VideoIndexerClient.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ def get_textual_summary(self, video_id:str, deployment_name:str, lenght:str, sty
408408
409409
:param video_id: The video ID
410410
:param deploymentName: The name of the deployment
411-
:param length: The length of the summary
412-
:param style: The style of the summary
411+
:param length: The length of the summary. Allowed values: Medium / Short / Long
412+
:param style: The style of the summary. Allowed values: Neutral / Casual / Formal
413413
'''
414414

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

0 commit comments

Comments
 (0)