gpu-utils / app.py
not-lain's picture
initial commit
003d203
raw
history blame
228 Bytes
import gradio as gr
import spaces
import torch
zero = torch.Tensor([0]).cuda()
@spaces.GPU
def greet(n):
return f"Hello {zero + n} Tensor"
demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
demo.launch()