Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
not-lain
/
gpu-utils
like
3
Running
on
Zero
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
003d203
gpu-utils
/
app.py
not-lain
initial commit
003d203
2 months ago
raw
Copy download link
history
blame
Safe
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()