Spaces:
Sleeping
Sleeping
Update pages/model.py
Browse files- pages/model.py +1 -3
pages/model.py
CHANGED
|
@@ -19,10 +19,8 @@ with st.expander("ℹ️ How It Works", expanded=False):
|
|
| 19 |
4. You get a quick summary without watching the whole video! ⚡
|
| 20 |
""")
|
| 21 |
|
| 22 |
-
if not HF_Token:
|
| 23 |
-
st.warning("⚠️ Please set `HUGGINGFACEHUB_API_TOKEN` in your environment.", icon="🔐")
|
| 24 |
|
| 25 |
-
if st.button("🚀 Generate Summary") and video_url and
|
| 26 |
try:
|
| 27 |
st.info("⏳ Fetching transcript from YouTube...")
|
| 28 |
loader = YoutubeLoader.from_youtube_url(video_url)
|
|
|
|
| 19 |
4. You get a quick summary without watching the whole video! ⚡
|
| 20 |
""")
|
| 21 |
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
if st.button("🚀 Generate Summary") and video_url and HF_Token:
|
| 24 |
try:
|
| 25 |
st.info("⏳ Fetching transcript from YouTube...")
|
| 26 |
loader = YoutubeLoader.from_youtube_url(video_url)
|