Added handling of multiple age inputs from user #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this pull request, I have made improvements to the age input handling in the Age Progression AI code. The original code had a fixed set of target ages or accepted a single target age as a string. I've expanded the functionality to allow for the processing of multiple age inputs provided as a comma-separated list.
Handling Multiple Age Inputs: Instead of only accepting a single target age as a string, the code now accepts a comma-separated list of target ages. For example, you can provide "10,20,30" as the target_age input.
Dynamically Generating Age Transformers: With the ability to provide multiple target ages, the code dynamically generates AgeTransformer instances for each specified age. This allows for the processing of multiple age transformations in a single run.
Improved Output File Handling: The output file format is now determined based on whether a single age transformation or multiple transformations are requested. If only one transformation is requested, the output is saved as a PNG image. If multiple transformations or the "default" target age set is provided, the output is saved as a GIF animation.
Please review and merge this pull request to benefit from these improvements in age input handling. Thank you!