import gradio as gr import torch def greet(n): return f"{torch.Tensor([n]).cuda()}" gr.Interface(greet, gr.Number(), gr.Text()).launch()