Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,18 @@
|
|
|
|
|
|
1 |
import googleapiclient.discovery
|
2 |
import re
|
3 |
import yt_dlp
|
4 |
import whisper
|
5 |
from pydub import AudioSegment
|
6 |
-
import tempfile
|
7 |
from transformers import pipeline
|
8 |
-
from pytrends.request import TrendReq
|
9 |
from youtube_transcript_api import YouTubeTranscriptApi
|
10 |
-
import torch
|
11 |
import openai
|
12 |
import json
|
13 |
-
from urllib.parse import urlparse, parse_qs
|
14 |
import os
|
|
|
|
|
|
|
15 |
|
16 |
def extract_video_id(url):
|
17 |
"""Extracts the video ID from a YouTube URL."""
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
import googleapiclient.discovery
|
4 |
import re
|
5 |
import yt_dlp
|
6 |
import whisper
|
7 |
from pydub import AudioSegment
|
|
|
8 |
from transformers import pipeline
|
|
|
9 |
from youtube_transcript_api import YouTubeTranscriptApi
|
|
|
10 |
import openai
|
11 |
import json
|
|
|
12 |
import os
|
13 |
+
from pytrends.request import TrendReq
|
14 |
+
import torch
|
15 |
+
from urllib.parse import urlparse, parse_qs
|
16 |
|
17 |
def extract_video_id(url):
|
18 |
"""Extracts the video ID from a YouTube URL."""
|