Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
import googleapiclient.discovery
|
4 |
import re
|
@@ -13,7 +13,6 @@ import os
|
|
13 |
from pytrends.request import TrendReq
|
14 |
import torch
|
15 |
from urllib.parse import urlparse, parse_qs
|
16 |
-
import pkg_resources
|
17 |
|
18 |
|
19 |
|
@@ -198,10 +197,6 @@ def youtube_seo_pipeline(youtube_url):
|
|
198 |
return "Invalid YouTube URL."
|
199 |
|
200 |
print(f"Video ID: {video_id}")
|
201 |
-
installed_packages = [(d.project_name, d.version) for d in pkg_resources.working_set]
|
202 |
-
print("Installed packages:")
|
203 |
-
for package in sorted(installed_packages):
|
204 |
-
print(f"{package[0]}=={package[1]}")
|
205 |
|
206 |
print("Fetching transcript...")
|
207 |
transcript = get_transcript(youtube_url, YOUTUBE_API_KEY)
|
|
|
1 |
+
!apt-get update && apt-get install -y ffmpeg
|
2 |
import gradio as gr
|
3 |
import googleapiclient.discovery
|
4 |
import re
|
|
|
13 |
from pytrends.request import TrendReq
|
14 |
import torch
|
15 |
from urllib.parse import urlparse, parse_qs
|
|
|
16 |
|
17 |
|
18 |
|
|
|
197 |
return "Invalid YouTube URL."
|
198 |
|
199 |
print(f"Video ID: {video_id}")
|
|
|
|
|
|
|
|
|
200 |
|
201 |
print("Fetching transcript...")
|
202 |
transcript = get_transcript(youtube_url, YOUTUBE_API_KEY)
|