Spaces:
Runtime error
Runtime error
Commit
·
8ecfeb7
1
Parent(s):
448f880
app.py
CHANGED
@@ -6,7 +6,6 @@ import json
|
|
6 |
import requests
|
7 |
import random
|
8 |
import io
|
9 |
-
from streamlit_toggle import st_toggleswitch
|
10 |
|
11 |
st.set_page_config(layout="wide")
|
12 |
col1, col2 = st.columns(2)
|
@@ -22,9 +21,9 @@ prefix = 'https://raw.githubusercontent.com/BennoKrojer/imagecode-val-set/main/i
|
|
22 |
set2ids = json.load(open('set2ids.json', 'r'))
|
23 |
descriptions = json.load(open('valid_list.json', 'r'))
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
example = int()
|
30 |
example_idx = int(col1.number_input('Sample an example from the validation set', value=0, min_value=0, max_value=len(descriptions)-1))
|
|
|
6 |
import requests
|
7 |
import random
|
8 |
import io
|
|
|
9 |
|
10 |
st.set_page_config(layout="wide")
|
11 |
col1, col2 = st.columns(2)
|
|
|
21 |
set2ids = json.load(open('set2ids.json', 'r'))
|
22 |
descriptions = json.load(open('valid_list.json', 'r'))
|
23 |
|
24 |
+
col11, col12 = col1.columns(2)
|
25 |
+
show = col11.button("1")
|
26 |
+
hide = col12.button("2")
|
27 |
|
28 |
example = int()
|
29 |
example_idx = int(col1.number_input('Sample an example from the validation set', value=0, min_value=0, max_value=len(descriptions)-1))
|