Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
tomsoderlund
/
rest-api-with-gradio
like
26
Running
App
Files
Files
Community
1
tomsoderlund
commited on
Dec 3, 2022
Commit
51857fd
•
1 Parent(s):
62c61ff
Simple app.py
Browse files
Files changed (1)
hide
show
app.py
+7
-0
app.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import gradio
2
+
3
+
def my_inference_function(name):
4
+
return "Hello " + name + "!"
5
+
6
+
gradio_interface = gradio.Interface(fn=my_inference_function, inputs="text", outputs="text")
7
+
gradio_interface.launch()