import { listFiles, whoAmI } from "npm:@huggingface/hub";
import type { Credentials, RepoDesignation } from "npm:@huggingface/hub";
const repo: RepoDesignation = { name: "lmsys/chatbot-arena-leaderboard", type: "space" };
const credentials: Credentials = { accessToken: Deno.env.get("HF_TOKEN") };
for await (const fileInfo of listFiles({ repo })) {
console.log(fileInfo);
}