Skip to content

Commit

Permalink
ModelExplorer: downloaded model title #232
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Mar 21, 2024
1 parent 87b33e9 commit 076dd6d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions support/modelexplore/modelexplore.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ def WriteDict(d):
st.write("No file selected.")


st.sidebar.download_button("Download NL Model", modelNL, filename_upl + '_NL.mod',
st.sidebar.download_button("Download NL Model",
"# NL Model for '" + filename_upl + \
"' (search pattern: '" + srch + "')\n" + \
modelNL,
filename_upl + '_NL.mod',
disabled = ("" == modelNL))
st.sidebar.download_button("Download Solver Model", modelFlat, filename_upl + '_solver.mod',
st.sidebar.download_button("Download Solver Model",
"# Solver Model for '" + filename_upl + \
"' (search pattern: '" + srch + "')\n" + \
modelFlat,
filename_upl + '_solver.mod',
disabled = ("" == modelFlat))

0 comments on commit 076dd6d

Please sign in to comment.