Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
cbensimon
/
gradio-4-concurrency
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
cbensimon
HF Staff
commited on
Nov 15, 2023
Commit
7abbec1
·
1 Parent(s):
249d6bd
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+10
-0
app.py
ADDED
Viewed
@@ -0,0 +1,10 @@
1
+
import time
2
+
3
+
import gradio as gr
4
+
5
+
def greet(name):
6
+
time.sleep(10)
7
+
return "Hello " + name + "!!"
8
+
9
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
10
+
iface.launch()