test123 / app.py
Omar Sanseviero
Create app.py
0f6346b
raw
history blame contribute delete
209 Bytes
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()