Spaces:
Build error
Build error
Update app.py
Browse files16 unmodified lines17181920212223242 unmodified lines2728293031325 unmodified lines3839404142434416 unmodified lines# cloning the dataset reporepo = Repository( local_dir="data", clone_from=DATASET_REPO_URL, repo_type="dataset", use_auth_token= auth_token)#data = pd.read_csv("test.csv")#for line in data:st.sidebar.markdown(2 unmodified linesThis app is demo how to use the space to provide user interface for the data annotation/tagging. The data resides in repo_type 'dataset'.""")# st.write(line)title = st.text_input('Movie title', 'Life of Brian')5 unmodified lines# data.to_csv('test.csv', index= False)st.write(df)# st.write('data/test.csv')# iterate over files in# that directory16 unmodified lines17181920212223242526272 unmodified lines303132333435363738395 unmodified lines4546474849505116 unmodified lines# cloning the dataset reporepo = Repository( local_dir="data", clone_from=DATASET_REPO_URL, repo_type="dataset", use_auth_token= auth_token)import jsonfile_name = 'paralist.json'with open('/content/data/{}'.format(file_name), 'r', encoding="utf8") as json_file:paraList = json.load(json_file)keys = paraList.keys()#data = pd.read_csv("test.csv")#for line in data:st.sidebar.markdown(2 unmodified linesThis app is demo how to use the space to provide user interface for the data annotation/tagging. The data resides in repo_type 'dataset'.""")if keys is not None:topic = st.sidebar.selectbox(label="Choose dataset topic to load", options=keys )# st.write(line)title = st.text_input('Movie title', 'Life of Brian')5 unmodified lines# data.to_csv('test.csv', index= False)#st.write(df)# st.write('data/test.csv')# iterate over files in# that directory
app.py+10-3