<jupyter_start><jupyter_text>Interactive Client for Tensor ServerAccepts from following API calls...* URL/ -- Simple welcome message. Add Help text in future* URL/tensor -- List the tensor files available, along with info (like shape)* URL/tensor?name=asdf -- Dump the value of the 'asdf' tensor, preferably in binary<jupyter_code>import requests

url = "http://localhost:5000/"<jupyter_output><empty_output><jupyter_text>Return help info on using the Tensor Server<jupyter_code>r = requests.get(url) 
if r.status_code == 200:
    print(f"Success: {r.text}")
else:
    print(f"Failure: {r.text}")<jupyter_output>Success: Tensor Server - WELCOME/n<jupyter_text>Return list of available tensors and their info<jupyter_code>r = requests.get(url + '/tensor')
if r.status_code == 200:
    print(f"Success: {r.text}")
else:
    print(f"Failure: {r.text}")<jupyter_output>Success: [
  {
    "name": "tornado3d", 
    "shape": "120,120,120"
  }, 
  {
    "name": "field2", 
    "shape": "12,12,12"
  }
]<jupyter_text>Return dump of tensor value for specific tensor<jupyter_code>name = 'tornado3d'
r = requests.get(url + '/tensor' + '?name=' + name)
if r.status_code == 200:
    print(f"Success: {r.text}")
else:
    print(f"Failure: {r.text}")<jupyter_output>Success: [
  [
    2, 
    2, 
    2, 
    3
  ], 
  12, 
  34, 
  45
]
StarcoderdataJupyterStructuredCleanDedup