xinjie.wang commited on
Commit
5f85653
·
1 Parent(s): b0ddc1c

Add application file

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import spaces
3
+ from gradio_litmodel3d import LitModel3D
4
+
5
+ @spaces.GPU
6
+ def greet(n):
7
+ print(zero.device) # <-- 'cuda:0' 🤗
8
+ return f"Hello {zero + n} Tensor"
9
+
10
+
11
+ with gr.Blocks() as demo:
12
+ model3d = LitModel3D(label="MESH", exposure=10, height=300)