File size: 200 Bytes
cdd07c8
3f0a2ea
 
c736cdc
 
3f0a2ea
c736cdc
3f0a2ea
 
cdd07c8
1
2
3
4
5
6
7
8
9
10
import torch
import gradio as gr

print(torch.__version__)

def greet(name):
    return "hello" + name + torch.__version__

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()