Spaces:
Runtime error
Runtime error
sradc
commited on
Commit
•
253ef1f
1
Parent(s):
2e1e799
no longer subtract 1 from the timestamp (since it's more accurate now)
Browse files
video_semantic_search/app.py
CHANGED
@@ -62,7 +62,6 @@ class SearchResult:
|
|
62 |
|
63 |
|
64 |
def get_video_url(video_id: str, timestamp: float) -> str:
|
65 |
-
timestamp = max(0, timestamp - 1)
|
66 |
return f"https://www.youtube.com/watch?v={video_id}&t={int(timestamp)}"
|
67 |
|
68 |
|
|
|
62 |
|
63 |
|
64 |
def get_video_url(video_id: str, timestamp: float) -> str:
|
|
|
65 |
return f"https://www.youtube.com/watch?v={video_id}&t={int(timestamp)}"
|
66 |
|
67 |
|