Spaces:
Runtime error
Runtime error
Add datetime
Browse files
app.py
CHANGED
@@ -37,6 +37,9 @@ blip_demo = vqa.VQA(
|
|
37 |
model_path = 'checkpoints/model_base_vqa_capfilt_large.pth')
|
38 |
|
39 |
def predict_image(image, object, question):
|
|
|
|
|
|
|
40 |
result, _ = glip_demo.run_on_web_image(image[:, :, [2, 1, 0]], object, 0.5)
|
41 |
result = result[:, :, [2, 1, 0]]
|
42 |
answer = blip_demo.vqa_demo(image, question)
|
|
|
37 |
model_path = 'checkpoints/model_base_vqa_capfilt_large.pth')
|
38 |
|
39 |
def predict_image(image, object, question):
|
40 |
+
now = datetime.now()
|
41 |
+
dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
|
42 |
+
print("TimeStamp {}".format(dt_string))
|
43 |
result, _ = glip_demo.run_on_web_image(image[:, :, [2, 1, 0]], object, 0.5)
|
44 |
result = result[:, :, [2, 1, 0]]
|
45 |
answer = blip_demo.vqa_demo(image, question)
|