Spaces:
Paused
Paused
Jason
commited on
increase file size to 5GB (#80)
Browse files- submission.py +2 -3
- ui_components.py +0 -2
submission.py
CHANGED
|
@@ -51,8 +51,7 @@ logger = logging.getLogger(__name__)
|
|
| 51 |
logger.setLevel(logging.DEBUG)
|
| 52 |
|
| 53 |
api = HfApi()
|
| 54 |
-
MAX_UPLOAD_BYTES =
|
| 55 |
-
AGENTEVAL_MANIFEST_NAME = "agenteval.json"
|
| 56 |
os.makedirs(EXTRACTED_DATA_DIR, exist_ok=True)
|
| 57 |
|
| 58 |
# --- Submission Logic (largely unchanged from original, ensure LeaderboardSubmission and other deps are fine) ---
|
|
@@ -390,7 +389,7 @@ def build_page():
|
|
| 390 |
gr.HTML("<div id='submission-file-label'>Upload your run file, which is an archive prepared following the instructions in the <a href='https://github.com/allenai/asta-bench?tab=readme-ov-file#submitting-to-the-leaderboard' target='_blank'>README</a> (“Submitting to the Leaderboard”).</div>")
|
| 391 |
file_upload_comp = gr.File(
|
| 392 |
show_label=False,
|
| 393 |
-
file_types=[".gz", ".tar.gz"]
|
| 394 |
)
|
| 395 |
submit_eval_button = gr.Button("Submit Evaluation", elem_id="submission-button")
|
| 396 |
# Modals for loading spinner, success and error messages
|
|
|
|
| 51 |
logger.setLevel(logging.DEBUG)
|
| 52 |
|
| 53 |
api = HfApi()
|
| 54 |
+
MAX_UPLOAD_BYTES = 5e9
|
|
|
|
| 55 |
os.makedirs(EXTRACTED_DATA_DIR, exist_ok=True)
|
| 56 |
|
| 57 |
# --- Submission Logic (largely unchanged from original, ensure LeaderboardSubmission and other deps are fine) ---
|
|
|
|
| 389 |
gr.HTML("<div id='submission-file-label'>Upload your run file, which is an archive prepared following the instructions in the <a href='https://github.com/allenai/asta-bench?tab=readme-ov-file#submitting-to-the-leaderboard' target='_blank'>README</a> (“Submitting to the Leaderboard”).</div>")
|
| 390 |
file_upload_comp = gr.File(
|
| 391 |
show_label=False,
|
| 392 |
+
file_types=[".gz", ".tar.gz"],
|
| 393 |
)
|
| 394 |
submit_eval_button = gr.Button("Submit Evaluation", elem_id="submission-button")
|
| 395 |
# Modals for loading spinner, success and error messages
|
ui_components.py
CHANGED
|
@@ -35,8 +35,6 @@ from content import (
|
|
| 35 |
)
|
| 36 |
|
| 37 |
api = HfApi()
|
| 38 |
-
MAX_UPLOAD_BYTES = 100 * 1024**2
|
| 39 |
-
AGENTEVAL_MANIFEST_NAME = "agenteval.json"
|
| 40 |
os.makedirs(EXTRACTED_DATA_DIR, exist_ok=True)
|
| 41 |
# Global variables
|
| 42 |
COMBINED_ICON_MAP = {
|
|
|
|
| 35 |
)
|
| 36 |
|
| 37 |
api = HfApi()
|
|
|
|
|
|
|
| 38 |
os.makedirs(EXTRACTED_DATA_DIR, exist_ok=True)
|
| 39 |
# Global variables
|
| 40 |
COMBINED_ICON_MAP = {
|