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
zhaoyu6
sglang
Commits
1363b519
"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "c345b4ca7c6540dcef70a2be3b4f3b768069ff3e"
Unverified
Commit
1363b519
authored
Nov 03, 2024
by
Iñaki Arango
Committed by
GitHub
Nov 03, 2024
Browse files
Escape backwards slash (#1902)
parent
0abbf289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/utils.py
python/sglang/utils.py
+2
-2
No files found.
python/sglang/utils.py
View file @
1363b519
...
@@ -305,7 +305,7 @@ def execute_shell_command(command: str) -> subprocess.Popen:
...
@@ -305,7 +305,7 @@ def execute_shell_command(command: str) -> subprocess.Popen:
Execute a shell command and return the process handle
Execute a shell command and return the process handle
Args:
Args:
command: Shell command as a string (can include \ line continuations)
command: Shell command as a string (can include
\
\
line continuations)
Returns:
Returns:
subprocess.Popen: Process handle
subprocess.Popen: Process handle
"""
"""
...
@@ -354,4 +354,4 @@ def terminate_process(process):
...
@@ -354,4 +354,4 @@ def terminate_process(process):
def
print_highlight
(
html_content
:
str
):
def
print_highlight
(
html_content
:
str
):
html_content
=
str
(
html_content
).
replace
(
"
\n
"
,
"<br>"
)
html_content
=
str
(
html_content
).
replace
(
"
\n
"
,
"<br>"
)
display
(
HTML
(
f
"<strong style='color: #00008B;'>
{
html_content
}
</strong>"
))
display
(
HTML
(
f
"<strong style='color: #00008B;'>
{
html_content
}
</strong>"
))
\ No newline at end of file
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