Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,10 @@ import urllib
|
|
| 6 |
|
| 7 |
usernames = {}
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
filepath = hf_hub_download(repo_id="bigcode/the-stack-username-to-repo", filename="username_to_repo.json.gz", repo_type="dataset", revision="v1.1")
|
| 10 |
with gzip.open(filepath, 'r') as f:
|
| 11 |
usernames["v1.1"] = json.loads(f.read().decode('utf-8'))
|
|
@@ -70,7 +74,7 @@ with gr.Blocks() as demo:
|
|
| 70 |
_, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
|
| 71 |
with colum_2:
|
| 72 |
gr.Markdown(text)
|
| 73 |
-
version = gr.Dropdown(["v1.1", "v1.0"], label="The Stack version:", value="v1.
|
| 74 |
username = gr.Text("", label="Your GitHub username:")
|
| 75 |
check_button = gr.Button("Check!")
|
| 76 |
|
|
|
|
| 6 |
|
| 7 |
usernames = {}
|
| 8 |
|
| 9 |
+
filepath = hf_hub_download(repo_id="bigcode/the-stack-username-to-repo", filename="username_to_repo.json.gz", repo_type="dataset", revision="v1.2")
|
| 10 |
+
with gzip.open(filepath, 'r') as f:
|
| 11 |
+
usernames["v1.2"] = json.loads(f.read().decode('utf-8'))
|
| 12 |
+
|
| 13 |
filepath = hf_hub_download(repo_id="bigcode/the-stack-username-to-repo", filename="username_to_repo.json.gz", repo_type="dataset", revision="v1.1")
|
| 14 |
with gzip.open(filepath, 'r') as f:
|
| 15 |
usernames["v1.1"] = json.loads(f.read().decode('utf-8'))
|
|
|
|
| 74 |
_, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
|
| 75 |
with colum_2:
|
| 76 |
gr.Markdown(text)
|
| 77 |
+
version = gr.Dropdown(["v1.2", "v1.1", "v1.0"], label="The Stack version:", value="v1.2")
|
| 78 |
username = gr.Text("", label="Your GitHub username:")
|
| 79 |
check_button = gr.Button("Check!")
|
| 80 |
|