| 
					
				 | 
			
			
				@@ -112,6 +112,8 @@ async def main(video_path, api_key): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         try: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             # 初始化视频分析类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             analyzer = VideoAnalyzer(api_key ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for file in genai.list_files(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                file.delete() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             duration = analyzer.video_duration( video_path ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             print( f"视频时长为{duration}秒" ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if int( duration ) >= 600 or int( duration ) == 0: 
			 |