fangshengren commited on
Commit
7181cda
·
verified ·
1 Parent(s): 1d354e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def caption(img,min_len,max_len):
15
  return processor.decode(out[0],skip_special_tokens=True)
16
  def greet(img, min_len,max_len):
17
  start = time.time()
18
- result=caption(img,min len,max len)
19
  end =time.time()
20
  total_time =str(end - start)
21
  result=result+'n'+total_time +'seconds'
 
15
  return processor.decode(out[0],skip_special_tokens=True)
16
  def greet(img, min_len,max_len):
17
  start = time.time()
18
+ result=caption(img,min_len,max_len)
19
  end =time.time()
20
  total_time =str(end - start)
21
  result=result+'n'+total_time +'seconds'