Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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'
|