Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
x0x7
/
basicpytorch
like
0
Runtime error
App
Files
Files
Community
x0x7
commited on
May 22, 2023
Commit
c93f6af
•
1 Parent(s):
c975a37
Add the app
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import gradio as gr
2
+
import torch
3
+
4
+
def greet(name):
5
+
return torch.cuda.is_available()
6
+
7
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
+
iface.launch(share=True)