Update st_runner.py

This commit is contained in:
op07n 2020-01-21 07:56:22 +01:00 committed by GitHub
parent 3ab93a57fe
commit b064e23f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ for basename in os.listdir(folder):
# Make a UI to run different files.
def format_func(s):
return s.split("/")[-1].split(".")[0]
els = s.split("/")[-1].split(".")[0].split("_")
return " ".join(el for el in els).capitalize()
fname_to_run = st.sidebar.selectbox(