File size: 209 Bytes
0f6346b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio
import torch

def hello(inp):
  data = [[1, 2],[3, 4]]
  x_data = torch.tensor(data)
  return "Hello {}!".format(inp)

io = gradio.Interface(fn=hello, inputs='text', outputs='text')  
io.launch()