mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
feat: add download submission.csv button for kaggle scenario (#317)
* add download submission.csv button for kaggle scenario * fix CI
This commit is contained in:
@@ -533,6 +533,16 @@ def feedback_window():
|
||||
- **Reason**: {h.reason}"""
|
||||
)
|
||||
|
||||
if isinstance(state.scenario, KGScenario):
|
||||
if fbe := state.msgs[round]["ef.runner result"]:
|
||||
submission_path = fbe[0].content.experiment_workspace.workspace_path / "submission.csv"
|
||||
st.download_button(
|
||||
label="**Download** submission.csv",
|
||||
data=submission_path.read_bytes(),
|
||||
file_name="submission.csv",
|
||||
mime="text/csv",
|
||||
)
|
||||
|
||||
|
||||
def evolving_window():
|
||||
title = "Development🛠️" if isinstance(state.scenario, SIMILAR_SCENARIOS) else "Development🛠️ (evolving coder)"
|
||||
|
||||
Reference in New Issue
Block a user