Spaces:
Runtime error
Runtime error
Kaelan commited on
Commit ·
6f4679f
1
Parent(s): f5e3fa7
change json expansion to flase
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ st.markdown("---")
|
|
| 69 |
### Side bar (Load Files)###
|
| 70 |
############################
|
| 71 |
st.sidebar.info('For csv & json files, name the text columns to be infered as "text". Annotated labels as "entities" Format of json text as below')
|
| 72 |
-
st.sidebar.json([{"text":"example","entities":[[5,6,"do"],[8,11,"dx"]]},{"text":"example2","entities":[[5,6,"do"],[8,11,"dx"]]}])
|
| 73 |
uploaded_file = st.sidebar.file_uploader("Upload a file", type=["csv","json","pdf", "txt"])
|
| 74 |
text_input = process_files(uploaded_file, text_input)
|
| 75 |
|
|
|
|
| 69 |
### Side bar (Load Files)###
|
| 70 |
############################
|
| 71 |
st.sidebar.info('For csv & json files, name the text columns to be infered as "text". Annotated labels as "entities" Format of json text as below')
|
| 72 |
+
st.sidebar.json([{"text":"example","entities":[[5,6,"do"],[8,11,"dx"]]},{"text":"example2","entities":[[5,6,"do"],[8,11,"dx"]]}],expanded=False)
|
| 73 |
uploaded_file = st.sidebar.file_uploader("Upload a file", type=["csv","json","pdf", "txt"])
|
| 74 |
text_input = process_files(uploaded_file, text_input)
|
| 75 |
|