Spaces:
Runtime error
Runtime error
Update bin_public/app/local.py
Browse files2 unmodified lines345678910111213141516171819202122232 unmodified linesfrom huggingface_hub import HfFileSystemimport osrepo_id = os.environ['repo_id']hh.login(token=os.environ['token'])api = HfApi()file_list = api.list_repo_files(repo_id=repo_id, repo_type="space")fs = HfFileSystem()with fs.open(f"spaces/{repo_id}/info/副脾_症状.txt") as f:data = f.read().decode()print(data)def connection(repo_id):hh.login(token=repo_id)def listing_files(repo_id):2 unmodified lines3456789102 unmodified linesfrom huggingface_hub import HfFileSystemimport osdef connection(token):hh.login(token=token)def listing_files(repo_id):
bin_public/app/local.py+2-15