File size: 202 Bytes
7c8ea93
 
3203f38
7c8ea93
3203f38
 
 
7c8ea93
 
3203f38
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr


def greet(name):
    import torch
    return f"Hello {name}, we are using torch {torch.__version__}"


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