Spaces:
Runtime error
Runtime error
Add timestamp
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
|
| 3 |
from numpy import true_divide
|
| 4 |
import gradio as gr
|
|
@@ -42,6 +43,9 @@ def predict_image(image, object, question):
|
|
| 42 |
return result, answer
|
| 43 |
|
| 44 |
def predict_video(video, object, question, frame_drop_value):
|
|
|
|
|
|
|
|
|
|
| 45 |
vid = cv2.VideoCapture(video)
|
| 46 |
count = 0
|
| 47 |
while True:
|
|
|
|
| 1 |
import os
|
| 2 |
+
from datetime import datetime
|
| 3 |
|
| 4 |
from numpy import true_divide
|
| 5 |
import gradio as gr
|
|
|
|
| 43 |
return result, answer
|
| 44 |
|
| 45 |
def predict_video(video, object, question, frame_drop_value):
|
| 46 |
+
now = datetime.now()
|
| 47 |
+
dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
|
| 48 |
+
print("TimeStamp {}".format(dt_string))
|
| 49 |
vid = cv2.VideoCapture(video)
|
| 50 |
count = 0
|
| 51 |
while True:
|