There are many SyntaxError in inference.py:
File "inference.py", line 82
def call(self, input_ids: torch.LongTensor, scores: torch.FloatTensor):
^
SyntaxError: invalid syntax
File "inference.py", line 134
msg = f"The video contains {len(indices)} frames sampled at {sec} seconds. "
^
SyntaxError: invalid syntax
There are many SyntaxError in inference.py: File "inference.py", line 82 def call(self, input_ids: torch.LongTensor, scores: torch.FloatTensor): ^ SyntaxError: invalid syntax
File "inference.py", line 134 msg = f"The video contains {len(indices)} frames sampled at {sec} seconds. " ^ SyntaxError: invalid syntax