Skip to content

Instantly share code, notes, and snippets.

@simon-mo
Created October 19, 2019 08:55
Show Gist options
  • Select an option

  • Save simon-mo/227ff53c2e4b8894259d7cf7b5de3eb8 to your computer and use it in GitHub Desktop.

Select an option

Save simon-mo/227ff53c2e4b8894259d7cf7b5de3eb8 to your computer and use it in GitHub Desktop.

modelzoo

service ModelzooService (services.proto)
Method Request Type Response Type Description
Inference Payload Payload Inference
GetImage ImageDownloadRequest ImageDownloadResponse Website utils
GetMetrics Empty MetricItems
GetToken Empty RateLimitToken Rate limiting
ListModels Empty ListModelsResponse Database
CreateUser User Empty
CreateModel Model Empty
GetUser User Empty
message Empty (services.proto)

Web

Field Description Type Go Python
KVPair message
key string string str/unicode
value string string str/unicode
message Image (services.proto)
Field Description Type Go Python
string> map<string,
image_data_url string string str/unicode
model_name string string str/unicode
access_token string string str/unicode
message ImageDownloadRequest (services.proto)

Downloader

Empty field.

message ImageDownloadResponse (services.proto)

Empty field.

message ListModelsResponse (services.proto)

message RateLimitExceeded { string token = 1; uint64 quota = 2; google.protobuf.Timestamp restore_at = 3; }

Empty field.

message MetricItems (services.proto)
Field Description Type Go Python
Metric message
key string string str/unicode
value string string str/unicode
unit string string str/unicode
metrics (slice of) Metric
message Model (services.proto)
Field Description Type Go Python
model_name string string str/unicode
metadata (slice of) KVPair
message Payload (services.proto)
Field Description Type Go Python
type PayloadType
payload oneof
image Image
text Text
table Table
message RateLimitToken (services.proto)

Empty field.

message Table (services.proto)
Field Description Type Go Python
string> map<string,
model_name string string str/unicode
access_token string string str/unicode
Row message
Row> map<string,
column_names (slice of) string (slice of) string (slice of) str/unicode
message Text (services.proto)

Text is a list of string

Field Description Type Go Python
string> map<string,
texts (slice of) string (slice of) string (slice of) str/unicode
model_name string string str/unicode
access_token string string str/unicode
message User (services.proto)
Field Description Type Go Python
email string string str/unicode
password string string str/unicode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment