Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,6 +80,9 @@ def submit(model_name, model_id, contact_email, challenge, submission_id, paper_
|
|
| 80 |
with open(out_path, "w") as f:
|
| 81 |
f.write(json.dumps(eval_entry))
|
| 82 |
|
|
|
|
|
|
|
|
|
|
| 83 |
print("Uploading eval file")
|
| 84 |
API.upload_file(
|
| 85 |
path_or_fileobj=out_path,
|
|
@@ -88,7 +91,6 @@ def submit(model_name, model_id, contact_email, challenge, submission_id, paper_
|
|
| 88 |
repo_type="dataset",
|
| 89 |
commit_message=f"Add {model_name} to eval queue",
|
| 90 |
)
|
| 91 |
-
sendForm("https://docs.google.com/forms/d/e/1FAIpQLSf1zP7RAFC5RLlva03xm0eIAPLKXOmMvNUzirbm82kdCUFKNw/viewform", fill_form(model_name, model_id, contact_email, challenge, submission_id, paper_link, architecture, license))
|
| 92 |
|
| 93 |
gr.Info("Successfully submitted", duration=10)
|
| 94 |
# Remove the local file
|
|
|
|
| 80 |
with open(out_path, "w") as f:
|
| 81 |
f.write(json.dumps(eval_entry))
|
| 82 |
|
| 83 |
+
print("Sending form")
|
| 84 |
+
sendForm("https://docs.google.com/forms/d/e/1FAIpQLSf1zP7RAFC5RLlva03xm0eIAPLKXOmMvNUzirbm82kdCUFKNw/viewform", fill_form(model_name, model_id, contact_email, challenge, submission_id, paper_link, architecture, license))
|
| 85 |
+
|
| 86 |
print("Uploading eval file")
|
| 87 |
API.upload_file(
|
| 88 |
path_or_fileobj=out_path,
|
|
|
|
| 91 |
repo_type="dataset",
|
| 92 |
commit_message=f"Add {model_name} to eval queue",
|
| 93 |
)
|
|
|
|
| 94 |
|
| 95 |
gr.Info("Successfully submitted", duration=10)
|
| 96 |
# Remove the local file
|