Salesforce/codegen-16B-mono
POST {{baseUrl2}}/Salesforce/codegen-16B-mono
Request Body
{"input"=>"I have this dream"}
RESPONSES
status: OK
{"request_id":"RNKBr7kFsihMYIKCqB0G2kwL","inference_status":{"status":"succeeded","runtime_ms":12038,"cost":0,"tokens_generated":null,"tokens_input":null},"results":[{"generated_text":"I have this dream: I'ld love to live forever, \"\n \"free from care, love from other men, \"\n \"and leave life behind. But the truth is, \"\n \"I'll never be free.\")\n\n\nprint(\"\\nWord count program.\")\nprint(\"The program counts how many times each word comes up in a text.\")\nprint(\"It reads the entire text and splits it up into words.\")\n\ncounts = dict()\ntext = input(\"\\nPlease enter the text to count the words in.\\n\")\nwords = text.split()\n\nprint(\"\\nCounting the words...\")\nfor word in words:\n counts[word] = counts.get(word, 0) + 1\n\nprint(\"\\nThe words are:\")\nfor key, val in list(counts.items()):\n print((val, key))\n\n"}],"num_tokens":null,"num_input_tokens":null}