developer28 commited on
Commit
f25e87e
Β·
verified Β·
1 Parent(s): 9dc972d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -79,7 +79,6 @@ class YouTubeDownloader:
79
  - Visual effects, text overlays, or graphics
80
  - Mood, tone, and atmosphere
81
  - Camera movements or angles (if apparent)
82
-
83
  2. Dialogue Emphasis:
84
  - Include short dialogue lines in **every scene** wherever plausible.
85
  - Write lines like: Character: "Actual or inferred line..."
@@ -98,7 +97,6 @@ class YouTubeDownloader:
98
 
99
 
100
  5. Write descriptions as if you're watching the video in real-time, noting everything visible and audible.
101
-
102
 
103
  Based on the title and description, intelligently infer what would likely happen in each time segment. Consider the video type and create contextually appropriate, detailed descriptions.
104
  """
@@ -347,7 +345,6 @@ class YouTubeDownloader:
347
  report = f"""
348
  🎬 YOUTUBE VIDEO ANALYSIS REPORT
349
  {'='*50}
350
-
351
  πŸ“‹ BASIC INFORMATION
352
  {'─'*25}
353
  πŸ“Ή **Title:** {title}
@@ -355,29 +352,24 @@ class YouTubeDownloader:
355
  πŸ“… **Upload Date:** {formatted_date}
356
  ⏱️ **Duration:** {duration_str}
357
  πŸ†” **Video ID:** {video_info.get('id', 'Unknown')}
358
-
359
  πŸ“Š PERFORMANCE METRICS
360
  {'─'*25}
361
  πŸ‘€ **Views:** {self.format_number(view_count)} ({view_count:,})
362
  πŸ‘ **Likes:** {self.format_number(like_count)} ({like_count:,})
363
  πŸ’¬ **Comments:** {self.format_number(comment_count)} ({comment_count:,})
364
  πŸ“ˆ **Engagement Rate:** {engagement_rate:.2f}%
365
-
366
  🎯 CONTENT ANALYSIS
367
  {'─'*25}
368
  πŸ“‚ **Video Type:** {video_type}
369
  🎡 **Background Music:** {background_music}
370
  πŸ‘‘ **Creator Status:** {influencer_status}
371
-
372
  🎬 DETAILED SCENE BREAKDOWN
373
  {'─'*30}
374
  {chr(10).join(scene_descriptions)}
375
-
376
  πŸ“ DESCRIPTION PREVIEW
377
  {'─'*25}
378
  {video_info.get('description', 'No description available')[:500]}
379
  {'...(truncated)' if len(video_info.get('description', '')) > 500 else ''}
380
-
381
  {'='*50}
382
  πŸ“Š **Analysis completed:** {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}
383
  πŸ€– **AI Enhancement:** {'Gemini AI' if self.gemini_model else 'Standard Analysis'}
 
79
  - Visual effects, text overlays, or graphics
80
  - Mood, tone, and atmosphere
81
  - Camera movements or angles (if apparent)
 
82
  2. Dialogue Emphasis:
83
  - Include short dialogue lines in **every scene** wherever plausible.
84
  - Write lines like: Character: "Actual or inferred line..."
 
97
 
98
 
99
  5. Write descriptions as if you're watching the video in real-time, noting everything visible and audible.
 
100
 
101
  Based on the title and description, intelligently infer what would likely happen in each time segment. Consider the video type and create contextually appropriate, detailed descriptions.
102
  """
 
345
  report = f"""
346
  🎬 YOUTUBE VIDEO ANALYSIS REPORT
347
  {'='*50}
 
348
  πŸ“‹ BASIC INFORMATION
349
  {'─'*25}
350
  πŸ“Ή **Title:** {title}
 
352
  πŸ“… **Upload Date:** {formatted_date}
353
  ⏱️ **Duration:** {duration_str}
354
  πŸ†” **Video ID:** {video_info.get('id', 'Unknown')}
 
355
  πŸ“Š PERFORMANCE METRICS
356
  {'─'*25}
357
  πŸ‘€ **Views:** {self.format_number(view_count)} ({view_count:,})
358
  πŸ‘ **Likes:** {self.format_number(like_count)} ({like_count:,})
359
  πŸ’¬ **Comments:** {self.format_number(comment_count)} ({comment_count:,})
360
  πŸ“ˆ **Engagement Rate:** {engagement_rate:.2f}%
 
361
  🎯 CONTENT ANALYSIS
362
  {'─'*25}
363
  πŸ“‚ **Video Type:** {video_type}
364
  🎡 **Background Music:** {background_music}
365
  πŸ‘‘ **Creator Status:** {influencer_status}
 
366
  🎬 DETAILED SCENE BREAKDOWN
367
  {'─'*30}
368
  {chr(10).join(scene_descriptions)}
 
369
  πŸ“ DESCRIPTION PREVIEW
370
  {'─'*25}
371
  {video_info.get('description', 'No description available')[:500]}
372
  {'...(truncated)' if len(video_info.get('description', '')) > 500 else ''}
 
373
  {'='*50}
374
  πŸ“Š **Analysis completed:** {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}
375
  πŸ€– **AI Enhancement:** {'Gemini AI' if self.gemini_model else 'Standard Analysis'}