Spaces:
Paused
Paused
File size: 756 Bytes
540cfe3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import os
import streamlit as st
from kaggle.api.kaggle_api_extended import KaggleApi
st.set_page_config(
page_title="Kaggle Controller",
page_icon="๐"
)
st.title("๐ Kaggle Controller")
NOTEBOOK = "haraberget/https-github-com-jigs10-ltx-2-5-kaggle-wan2gp"
if "KAGGLE_API_TOKEN" not in os.environ:
st.error("KAGGLE_API_TOKEN is not configured!")
st.stop()
st.success("Kaggle token found")
api = KaggleApi()
api.authenticate()
st.write("Connected to Kaggle")
if st.button("๐ Check notebook"):
try:
kernel = api.kernel_status(
"haraberget",
"https-github-com-jigs10-ltx-2-5-kaggle-wan2gp"
)
st.json(kernel)
except Exception as e:
st.error(f"Kaggle error: {e}") |