Spaces:
Runtime error
Runtime error
Commit
·
0b0c34c
1
Parent(s):
87c5f78
Update app.py
Browse files
app.py
CHANGED
@@ -62,12 +62,12 @@ def video_processing(video):
|
|
62 |
cv2.destroyAllWindows()
|
63 |
end_time = time.time()
|
64 |
print(f'Time taken: {end_time-start_time}')
|
65 |
-
return gaze_percentage
|
66 |
|
67 |
|
68 |
demo = gr.Interface(fn = video_processing,
|
69 |
inputs= gr.Video(),
|
70 |
-
outputs =
|
71 |
)
|
72 |
|
73 |
if __name__ == "__main__":
|
|
|
62 |
cv2.destroyAllWindows()
|
63 |
end_time = time.time()
|
64 |
print(f'Time taken: {end_time-start_time}')
|
65 |
+
return str(gaze_percentage)
|
66 |
|
67 |
|
68 |
demo = gr.Interface(fn = video_processing,
|
69 |
inputs= gr.Video(),
|
70 |
+
outputs = 'text'
|
71 |
)
|
72 |
|
73 |
if __name__ == "__main__":
|