Spaces:
Sleeping
Sleeping
File size: 264 Bytes
c4475c8 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
import open3d_zerogpu_fix
import open3d as o3d
import spaces
@spaces.GPU
def greet(n):
return o3d.core.Tensor([], device=o3d.core.Device("CUDA:0")).device
demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
demo.launch()
|