Spaces:
Sleeping
Sleeping
Update pages/model.py
Browse files- pages/model.py +1 -1
pages/model.py
CHANGED
|
@@ -19,7 +19,7 @@ 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
|
| 23 |
st.warning("⚠️ Please set `HUGGINGFACEHUB_API_TOKEN` in your environment.", icon="🔐")
|
| 24 |
|
| 25 |
if st.button("🚀 Generate Summary") and video_url and hf_token:
|
|
|
|
| 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 hf_token:
|