add code repo to submission
Browse files- src/pages/submit.py +2 -2
- src/submission/submit.py +2 -0
src/pages/submit.py
CHANGED
|
@@ -46,8 +46,7 @@ def show_submit_page(index: int):
|
|
| 46 |
with gr.Row():
|
| 47 |
with gr.Column():
|
| 48 |
model_name_textbox = gr.Textbox(label="Model name")
|
| 49 |
-
|
| 50 |
-
# add more field here
|
| 51 |
|
| 52 |
submit_button = gr.Button("Submit Eval")
|
| 53 |
submission_result = gr.Markdown()
|
|
@@ -55,6 +54,7 @@ def show_submit_page(index: int):
|
|
| 55 |
add_new_eval,
|
| 56 |
[
|
| 57 |
model_name_textbox,
|
|
|
|
| 58 |
],
|
| 59 |
submission_result,
|
| 60 |
)
|
|
|
|
| 46 |
with gr.Row():
|
| 47 |
with gr.Column():
|
| 48 |
model_name_textbox = gr.Textbox(label="Model name")
|
| 49 |
+
code_repo_textbox = gr.Textbox(label="Code repo")
|
|
|
|
| 50 |
|
| 51 |
submit_button = gr.Button("Submit Eval")
|
| 52 |
submission_result = gr.Markdown()
|
|
|
|
| 54 |
add_new_eval,
|
| 55 |
[
|
| 56 |
model_name_textbox,
|
| 57 |
+
code_repo_textbox
|
| 58 |
],
|
| 59 |
submission_result,
|
| 60 |
)
|
src/submission/submit.py
CHANGED
|
@@ -14,6 +14,7 @@ USERS_TO_SUBMISSION_DATES = None
|
|
| 14 |
|
| 15 |
def add_new_eval(
|
| 16 |
model: str,
|
|
|
|
| 17 |
):
|
| 18 |
global REQUESTED_MODELS
|
| 19 |
global USERS_TO_SUBMISSION_DATES
|
|
@@ -47,6 +48,7 @@ def add_new_eval(
|
|
| 47 |
|
| 48 |
eval_entry = {
|
| 49 |
"model": model,
|
|
|
|
| 50 |
"revision": revision,
|
| 51 |
"status": "PENDING",
|
| 52 |
"submitted_time": current_time,
|
|
|
|
| 14 |
|
| 15 |
def add_new_eval(
|
| 16 |
model: str,
|
| 17 |
+
code_repo: str
|
| 18 |
):
|
| 19 |
global REQUESTED_MODELS
|
| 20 |
global USERS_TO_SUBMISSION_DATES
|
|
|
|
| 48 |
|
| 49 |
eval_entry = {
|
| 50 |
"model": model,
|
| 51 |
+
"code_repo": code_repo,
|
| 52 |
"revision": revision,
|
| 53 |
"status": "PENDING",
|
| 54 |
"submitted_time": current_time,
|