Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
cbensimon
/
ergergegr
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
cbensimon
HF Staff
commited on
Oct 5, 2023
Commit
3d90d51
·
1 Parent(s):
1d0d88c
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+7
-0
app.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import gradio as gr
2
+
import torch
3
+
4
+
def greet(n):
5
+
return f"{torch.Tensor([n]).cuda()}"
6
+
7
+
gr.Interface(fn=fn, gr.Number(), gr.Text()).launch()