Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,16 +55,18 @@ Response:
|
|
| 55 |
st.title(":blue[Venus] Annotation System 🪐")
|
| 56 |
|
| 57 |
# Step 1: Load the problem set
|
|
|
|
|
|
|
| 58 |
my_bar = st.progress(0, text="Loading the problem set...")
|
| 59 |
|
| 60 |
-
my_bar.progress(10, text="Loading [Elfsong/Venus] datasets...")
|
| 61 |
if "raw_ds" not in st.session_state.keys():
|
| 62 |
-
st.session_state["raw_ds"] = load_dataset("Elfsong/Venus",
|
| 63 |
raw_ds = st.session_state["raw_ds"]
|
| 64 |
|
| 65 |
-
my_bar.progress(55, text="Loading [Elfsong/venus_case] datasets...")
|
| 66 |
if "case_ds" not in st.session_state.keys():
|
| 67 |
-
st.session_state["case_ds"] = load_dataset("Elfsong/venus_case",
|
| 68 |
case_ds = st.session_state["case_ds"]
|
| 69 |
|
| 70 |
my_bar.progress(90, text="Filtering out the cases that already exist...")
|
|
|
|
| 55 |
st.title(":blue[Venus] Annotation System 🪐")
|
| 56 |
|
| 57 |
# Step 1: Load the problem set
|
| 58 |
+
language = ste.selectbox("Select a problem here", ['python3', 'cpp', 'rust', 'javascript', 'golang', 'java'])
|
| 59 |
+
|
| 60 |
my_bar = st.progress(0, text="Loading the problem set...")
|
| 61 |
|
| 62 |
+
my_bar.progress(10, text="Loading [Elfsong/Venus]-[{language}] datasets...")
|
| 63 |
if "raw_ds" not in st.session_state.keys():
|
| 64 |
+
st.session_state["raw_ds"] = load_dataset("Elfsong/Venus", language)
|
| 65 |
raw_ds = st.session_state["raw_ds"]
|
| 66 |
|
| 67 |
+
my_bar.progress(55, text=f"Loading [Elfsong/venus_case]-[{language}] datasets...")
|
| 68 |
if "case_ds" not in st.session_state.keys():
|
| 69 |
+
st.session_state["case_ds"] = load_dataset("Elfsong/venus_case", language)
|
| 70 |
case_ds = st.session_state["case_ds"]
|
| 71 |
|
| 72 |
my_bar.progress(90, text="Filtering out the cases that already exist...")
|