File size: 256 Bytes
15e9470
c520478
15e9470
f3e83e8
 
15e9470
 
f3e83e8
c520478
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()