Spaces:
Sleeping
Sleeping
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() |