Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,10 @@ import psutil
|
|
6 |
|
7 |
|
8 |
def greet(name):
|
9 |
-
start = datetime.now(pytz.timezone('Asia/Tokyo')).strftime("%
|
10 |
-
time.sleep(
|
11 |
-
end = datetime.now(pytz.timezone('Asia/Tokyo')).strftime("%
|
12 |
return f"[{name}] {start} ~ {end}"
|
13 |
|
14 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text", concurrency_limit=
|
15 |
demo.launch()
|
|
|
6 |
|
7 |
|
8 |
def greet(name):
|
9 |
+
start = datetime.now(pytz.timezone('Asia/Tokyo')).strftime("%H:%M:%S")
|
10 |
+
time.sleep(1)
|
11 |
+
end = datetime.now(pytz.timezone('Asia/Tokyo')).strftime("%H:%M:%S")
|
12 |
return f"[{name}] {start} ~ {end}"
|
13 |
|
14 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text", concurrency_limit=10)
|
15 |
demo.launch()
|