Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,10 @@ import gradio as gr
|
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
import json
|
| 4 |
import urllib
|
|
|
|
| 5 |
|
| 6 |
filepath = hf_hub_download(repo_id="bigcode/commits-username-to-repo", filename="username_to_repo.json",
|
| 7 |
-
repo_type="dataset", token="
|
| 8 |
with open(filepath, 'r') as f:
|
| 9 |
username_to_repo = json.load(f)
|
| 10 |
|
|
|
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
import json
|
| 4 |
import urllib
|
| 5 |
+
import os
|
| 6 |
|
| 7 |
filepath = hf_hub_download(repo_id="bigcode/commits-username-to-repo", filename="username_to_repo.json",
|
| 8 |
+
repo_type="dataset", token=os.environ.get("api_token"))
|
| 9 |
with open(filepath, 'r') as f:
|
| 10 |
username_to_repo = json.load(f)
|
| 11 |
|