my_first_space / app.py
martenl's picture
Reformat file and add little gradio interface
c520478
raw
history blame contribute delete
No virus
256 Bytes
import torch
import gradio as gr
a = torch.IntTensor([1, 2, 3])
b = torch.IntTensor([4, 5, 6])
m = a * b
print(m.numpy())
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()