MiniDPVO / pixi_app.py
pablovela5620's picture
add spaces
a65b44b
raw history blame
No virus
283 Bytes
import gradio as gr
import spaces
import torch
tensor = torch.zeros(3).cuda()
print(tensor.device)
@spaces.GPU
def greet(name):
print(tensor.device)
return "Hello pixi pablo " + name + "!!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()