Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
inoki-giskard
/
test-inference-api
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
inoki-giskard
commited on
Feb 19, 2024
Commit
491f117
·
1 Parent(s):
99345a5
Add hello world
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
ADDED
Viewed
@@ -0,0 +1,9 @@
1
+
import gradio as gr
2
+
3
+
import socket
4
+
5
+
def greet(name):
6
+
return socket.gethostbyname(name)
7
+
8
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
9
+
iface.launch()