Spaces:
Running
Running
Fixed URL exception
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import google.generativeai as google_genai
|
|
7 |
import os
|
8 |
from dotenv import load_dotenv
|
9 |
|
|
|
10 |
load_dotenv()
|
11 |
|
12 |
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
@@ -64,7 +65,7 @@ youtube_url_tab, file_select_tab, audio_file_tab = st.tabs(
|
|
64 |
with youtube_url_tab:
|
65 |
url = st.text_input("Enter the Youtube url")
|
66 |
yt_video, title = youtube_video_downloader(url)
|
67 |
-
if
|
68 |
if st.button("Transcribe"):
|
69 |
with st.spinner("Transcribing..."):
|
70 |
ytvideo_transcript = transcribe_video(yt_video)
|
|
|
7 |
import os
|
8 |
from dotenv import load_dotenv
|
9 |
|
10 |
+
|
11 |
load_dotenv()
|
12 |
|
13 |
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
|
|
65 |
with youtube_url_tab:
|
66 |
url = st.text_input("Enter the Youtube url")
|
67 |
yt_video, title = youtube_video_downloader(url)
|
68 |
+
if url:
|
69 |
if st.button("Transcribe"):
|
70 |
with st.spinner("Transcribing..."):
|
71 |
ytvideo_transcript = transcribe_video(yt_video)
|