Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,10 +66,7 @@ def sidebar():
|
|
66 |
with st.sidebar:
|
67 |
st.markdown("Enter the YouTube Video URL below🔗\n")
|
68 |
st.session_state.youtube_url = st.text_input("YouTube Video URL:")
|
69 |
-
|
70 |
-
# REPLICATE_API_TOKEN = st.text_input("REPLICATE API TOKEN:", type="password") # Using type="password" to mask the input
|
71 |
-
# if REPLICATE_API_TOKEN:
|
72 |
-
# os.environ["REPLICATE_API_TOKEN"] = REPLICATE_API_TOKEN
|
73 |
|
74 |
if st.session_state.youtube_url:
|
75 |
# Get the video title
|
@@ -107,7 +104,7 @@ prompt = PromptTemplate(
|
|
107 |
if st.session_state.youtube_url != st.session_state.doneYoutubeurl:
|
108 |
st.session_state.setup_done = False
|
109 |
|
110 |
-
if st.session_state.youtube_url and not st.session_state.setup_done
|
111 |
with st.status("Transcribing video..."):
|
112 |
data = transcribe_video(st.session_state.youtube_url, PATH)
|
113 |
|
|
|
66 |
with st.sidebar:
|
67 |
st.markdown("Enter the YouTube Video URL below🔗\n")
|
68 |
st.session_state.youtube_url = st.text_input("YouTube Video URL:")
|
69 |
+
|
|
|
|
|
|
|
70 |
|
71 |
if st.session_state.youtube_url:
|
72 |
# Get the video title
|
|
|
104 |
if st.session_state.youtube_url != st.session_state.doneYoutubeurl:
|
105 |
st.session_state.setup_done = False
|
106 |
|
107 |
+
if st.session_state.youtube_url and not st.session_state.setup_done :
|
108 |
with st.status("Transcribing video..."):
|
109 |
data = transcribe_video(st.session_state.youtube_url, PATH)
|
110 |
|