tianyang commited on
Commit
33aa037
·
1 Parent(s): 7bd10e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,7 +32,7 @@ opt_out_text_template = """\
32
  ### Opt-out
33
 
34
  If you want your data to be removed from RepoBench for model evaluation \
35
- open an issue with <a href="https://huggingface.co/spaces/tianyang/in-the-repobench/discussions/new?title={title}&body={body}" target="_blank">this link</a>\
36
  """
37
 
38
  opt_out_issue_title = """Opt-out request for {username}"""
@@ -60,7 +60,7 @@ def check_username(username, version):
60
  if username in usernames[version] and len(usernames[version][username])>0:
61
  repos = usernames[version][username]
62
  repo_word = "repository" if len(repos)==1 else "repositories"
63
- output_md += f"**Yes**, there is code from **{len(repos)} {repo_word}** in The Stack:\n\n"
64
  for repo in repos:
65
  output_md += f"_{repo}_\n\n"
66
 
@@ -77,7 +77,7 @@ with gr.Blocks() as demo:
77
  version = gr.Dropdown([
78
  "v1.0 (from 2023-09-07 to 2023-10-06)",
79
  "v1.1 (from 2023-10-07 to 2023-12-31)"
80
- ], label="The Stack version:", value="v1.1 (from 2023-10-07 to 2023-12-31)")
81
  username = gr.Text("", label="Your GitHub username:")
82
  check_button = gr.Button("Check!")
83
 
 
32
  ### Opt-out
33
 
34
  If you want your data to be removed from RepoBench for model evaluation \
35
+ open an issue with <a href="https://github.com/Leolty/repobench/issues/new?title={title}&body={body}" target="_blank">this link</a>\
36
  """
37
 
38
  opt_out_issue_title = """Opt-out request for {username}"""
 
60
  if username in usernames[version] and len(usernames[version][username])>0:
61
  repos = usernames[version][username]
62
  repo_word = "repository" if len(repos)==1 else "repositories"
63
+ output_md += f"**Yes**, there is code from **{len(repos)} {repo_word}** in RepoBench:\n\n"
64
  for repo in repos:
65
  output_md += f"_{repo}_\n\n"
66
 
 
77
  version = gr.Dropdown([
78
  "v1.0 (from 2023-09-07 to 2023-10-06)",
79
  "v1.1 (from 2023-10-07 to 2023-12-31)"
80
+ ], label="RepoBench version:", value="v1.1 (from 2023-10-07 to 2023-12-31)")
81
  username = gr.Text("", label="Your GitHub username:")
82
  check_button = gr.Button("Check!")
83