Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,9 @@ import urllib
|
|
6 |
|
7 |
usernames = {}
|
8 |
|
|
|
|
|
|
|
9 |
|
10 |
filepath = hf_hub_download(repo_id="bigcode/the-stack-username-to-repo", filename="username_to_repo.json.gz", repo_type="dataset", revision="v2.0")
|
11 |
with gzip.open(filepath, 'r') as f:
|
@@ -38,6 +41,11 @@ This tool lets you check if a repository under a given username is part of The S
|
|
38 |
|
39 |
**Data source**:\
|
40 |
<img src="https://annex.softwareheritage.org/public/logo/software-heritage-logo-title.2048px.png" alt="Logo" style="height: 3em; vertical-align: middle;" />
|
|
|
|
|
|
|
|
|
|
|
41 |
"""
|
42 |
opt_out_text_template = """\
|
43 |
### Opt-out
|
@@ -92,7 +100,7 @@ with gr.Blocks() as demo:
|
|
92 |
_, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
|
93 |
with colum_2:
|
94 |
gr.Markdown(text)
|
95 |
-
version = gr.Dropdown(["v2.0", "v1.2", "v1.1", "v1.0"], label="The Stack version:", value="v2.0")
|
96 |
username = gr.Text("", label="Your GitHub username:")
|
97 |
check_button = gr.Button("Check!")
|
98 |
|
|
|
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="v2.0.1")
|
10 |
+
with gzip.open(filepath, 'r') as f:
|
11 |
+
usernames["v2.0.1"] = 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="v2.0")
|
14 |
with gzip.open(filepath, 'r') as f:
|
|
|
41 |
|
42 |
**Data source**:\
|
43 |
<img src="https://annex.softwareheritage.org/public/logo/software-heritage-logo-title.2048px.png" alt="Logo" style="height: 3em; vertical-align: middle;" />
|
44 |
+
|
45 |
+
**Model training**:\
|
46 |
+
- StarCoder1 was trained on repos listed in `v1.2`.
|
47 |
+
- StarCoder2 was trained on repos listed in `v2.0.1`.
|
48 |
+
|
49 |
"""
|
50 |
opt_out_text_template = """\
|
51 |
### Opt-out
|
|
|
100 |
_, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
|
101 |
with colum_2:
|
102 |
gr.Markdown(text)
|
103 |
+
version = gr.Dropdown(["v2.0.1", "v2.0", "v1.2", "v1.1", "v1.0"], label="The Stack version:", value="v2.0.1")
|
104 |
username = gr.Text("", label="Your GitHub username:")
|
105 |
check_button = gr.Button("Check!")
|
106 |
|