Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
x0x7
/
basicpytorch
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
863bf38
basicpytorch
/
app.py
x0x7
Add the app
c93f6af
over 1 year ago
raw
Copy download link
history
blame
176 Bytes
import
gradio
as
gr
import
torch
def
greet
(
name
):
return
torch.cuda.is_available()
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch(share=
True
)