Skip to content

Commit

Permalink
Using typer.prompt instead of input
Browse files Browse the repository at this point in the history
  • Loading branch information
jsreuss committed Nov 20, 2024
1 parent 0fe53a2 commit bc8cdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eurocropsml/dataset/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_user_choice(files_to_download: list[str]) -> list[str]:
logger.info("Choose one or more of the following options by typing their numbers (e.g., 1 3):")
for i, file in enumerate(files_to_download, 1):
logger.info(f"{i}. {file}")
choice = input("Enter your choices separated by spaces: ")
choice = typer.prompt("Enter your choices separated by spaces: ")
selected_indices = [int(choice) - 1 for choice in choice.split()]
selected_options = [files_to_download[i] for i in selected_indices]

Expand Down

0 comments on commit bc8cdfa

Please sign in to comment.