SuperMiner commited on
Commit
6f04e62
·
1 Parent(s): b4cf154
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import spaces
3
+ import torch
4
+ import subprocess
5
+ zero = torch.Tensor([0]).cuda()
6
+ print(zero.device) # <-- 'cpu' 🤔
7
+
8
+ @spaces.GPU
9
+ import subprocess
10
+
11
+ subprocess.run(['bash', 'https://astral.sh/uv/install.sh'])
12
+
13
+
14
+ demo = gr.Interface(fn=greet, inputs=grsd, outputs=grff)
15
+ demo.launch()