Renecto commited on
Commit
940faa3
1 Parent(s): 6024a80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -6,10 +6,10 @@ import psutil
6
 
7
 
8
  def greet(name):
9
- start = datetime.now(pytz.timezone('Asia/Tokyo')).strftime("%Y-%m-%d %H:%M:%S")
10
- time.sleep(3)
11
- end = datetime.now(pytz.timezone('Asia/Tokyo')).strftime("%Y-%m-%d %H:%M:%S")
12
  return f"[{name}] {start} ~ {end}"
13
 
14
- demo = gr.Interface(fn=greet, inputs="text", outputs="text", concurrency_limit=5)
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()