aimodelshare
aimodelshare copied to clipboard
Abstract API used in Competition Object Creation
Current Python Code to create Competition Object -
from aimodelshare.aws import set_credentials
apiurl="https://srdmat3yhf.execute-api.us-east-1.amazonaws.com/prod/m"
set_credentials(apiurl=apiurl)
mycompetition= ai.Competition(apiurl)
I believe that the long API URL feels a bit cumbersome either for Professors to share in a class or for students to use it.
One way to improve the user experience would be to abstract the apiurl to a keyword/number which acts as a UniqueID.
The keyword can be any of the follows :
- Model ID of the modelplayground
- Randomly generated 5-Character Hexadecimal Values.
- Keyword can be set by the User Input during the creation of competition in
function - create_competition
underclass - ModelPlayground