Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
8ce202a4
Unverified
Commit
8ce202a4
authored
Oct 31, 2024
by
geeker-smallwhite
Committed by
GitHub
Oct 31, 2024
Browse files
delete unused character (#1855)
parent
d913d52c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/utils.py
python/sglang/utils.py
+1
-1
No files found.
python/sglang/utils.py
View file @
8ce202a4
...
@@ -155,7 +155,7 @@ def encode_video_base64(video_path: str, num_frames: int = 16):
...
@@ -155,7 +155,7 @@ def encode_video_base64(video_path: str, num_frames: int = 16):
frame_indices
=
np
.
linspace
(
0
,
total_frames
-
1
,
num_frames
,
dtype
=
int
)
frame_indices
=
np
.
linspace
(
0
,
total_frames
-
1
,
num_frames
,
dtype
=
int
)
frames
=
[]
frames
=
[]
for
i
in
range
(
total_frames
):
for
_
in
range
(
total_frames
):
ret
,
frame
=
cap
.
read
()
ret
,
frame
=
cap
.
read
()
if
ret
:
if
ret
:
frames
.
append
(
frame
)
frames
.
append
(
frame
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment