Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,10 @@ def add_new_eval(
|
|
44 |
return "Error! Empty file!"
|
45 |
if model_link == '' or model_name_textbox == '' or contact_email == '':
|
46 |
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True)
|
47 |
-
|
|
|
|
|
|
|
48 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
49 |
submission_repo.git_pull()
|
50 |
filename = f"{model_name_textbox}_{model_type}_{model_ability}_{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}"
|
|
|
44 |
return "Error! Empty file!"
|
45 |
if model_link == '' or model_name_textbox == '' or contact_email == '':
|
46 |
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True)
|
47 |
+
|
48 |
+
submission_repo.git_config("user.email", "haoyid@stanford.edu")
|
49 |
+
submission_repo.git_config("user.name", "Howieeeee")
|
50 |
+
|
51 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
52 |
submission_repo.git_pull()
|
53 |
filename = f"{model_name_textbox}_{model_type}_{model_ability}_{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}"
|