Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,16 @@ import urllib
|
|
7 |
usernames = {}
|
8 |
|
9 |
|
10 |
-
filepath = "
|
11 |
|
12 |
with gzip.open(filepath, 'r') as f:
|
13 |
usernames["v1.0 (from 2023-09-07 to 2023-10-06)"] = json.loads(f.read().decode('utf-8'))
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
text = """\
|
16 |
**_RepoBench is a benchmark specifically designed for evaluating repository-level code auto-completion systems._**
|
17 |
|
@@ -69,7 +74,10 @@ with gr.Blocks() as demo:
|
|
69 |
_, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
|
70 |
with colum_2:
|
71 |
gr.Markdown(text)
|
72 |
-
version = gr.Dropdown([
|
|
|
|
|
|
|
73 |
username = gr.Text("", label="Your GitHub username:")
|
74 |
check_button = gr.Button("Check!")
|
75 |
|
|
|
7 |
usernames = {}
|
8 |
|
9 |
|
10 |
+
filepath = "username_to_repo_v1.0.json.gz"
|
11 |
|
12 |
with gzip.open(filepath, 'r') as f:
|
13 |
usernames["v1.0 (from 2023-09-07 to 2023-10-06)"] = json.loads(f.read().decode('utf-8'))
|
14 |
|
15 |
+
filepath = "username_to_repo_v1.1.json.gz"
|
16 |
+
|
17 |
+
with gzip.open(filepath, 'r') as f:
|
18 |
+
usernames["v1.1 (from 2023-10-07 to 2023-12-31)"] = json.loads(f.read().decode('utf-8'))
|
19 |
+
|
20 |
text = """\
|
21 |
**_RepoBench is a benchmark specifically designed for evaluating repository-level code auto-completion systems._**
|
22 |
|
|
|
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([
|
78 |
+
"v1.0 (from 2023-09-07 to 2023-10-06)",
|
79 |
+
"1.1 (from 2023-10-07 to 2023-12-31)"
|
80 |
+
], label="The Stack version:", value="1.1 (from 2023-10-07 to 2023-12-31)")
|
81 |
username = gr.Text("", label="Your GitHub username:")
|
82 |
check_button = gr.Button("Check!")
|
83 |
|