File size: 633 Bytes
3788f63 bcc3eb3 3788f63 293121e bcc3eb3 d728674 bcc3eb3 8f819dd 71b9d48 ebf441e dc8dc95 71b9d48 8f819dd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import streamlit as st
from datasets import load_dataset
st.title("Code Arena")
with st.spinner("Loading data...", show_time=True):
ds = load_dataset("Elfsong/leetcode_data", split='train')
tab_problem, tab_model = st.tabs(["Problems", "Models"])
with tab_problem:
for problem in ds:
with st.container(border=True):
id_col, title_col, difficulty_col, dp_col = st.columns([1,5,1,1])
id_col.write(problem['problem_id'])
title_col.write(problem['title'])
difficulty_col.write(problem['difficulty'])
dp_col.write(0)
with tab_model:
st.header("Models")
|