import streamlit as st import pandas as pd from huggingface_hub import Repository import os #HF_TOKEN = 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 #repo = Repository( # local_dir="data", clone_from='ppsingh/annotation_data', use_auth_token=HF_TOKEN #) data = pd.read_csv("test.csv") for line in data: st.write(line) title = st.text_input('Movie title', 'Life of Brian') if st.button('Submit'): new_row = {'Sentences': title} data = data.append(new_row, ignore_index=True) st.write(data) data.to_csv('./test.csv', index= False) st.write(os.environ.get("HF_TOKEN"))