aimodelshare icon indicating copy to clipboard operation
aimodelshare copied to clipboard

Abstract API used in Competition Object Creation

Open VijayKalmath opened this issue 2 years ago • 0 comments

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 :

  1. Model ID of the modelplayground
  2. Randomly generated 5-Character Hexadecimal Values.
  3. Keyword can be set by the User Input during the creation of competition in function - create_competition under class - ModelPlayground

VijayKalmath avatar Aug 31 '22 15:08 VijayKalmath