Skip to content

Commit

Permalink
chore: readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vndee committed Jul 9, 2024
1 parent ecb7027 commit 1258572
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,16 @@ from llm_sandbox import SandboxSession

# Create a new sandbox session
with SandboxSession(image="python:3.9.19-bullseye", keep_template=True, lang="python") as session:
# Run some Python code in the sandbox
result = session.run("print('Hello, World!')")
print(result)

# With custom Dockerfile
with SandboxSession(dockerfile="Dockerfile", keep_template=True, lang="python") as session:
# Run some Python code in the sandbox
result = session.run("print('Hello, World!')")
print(result)

# Or default image
with SandboxSession(lang="python", keep_template=True) as session:
# Run some Python code in the sandbox
result = session.run("print('Hello, World!')")
print(result)
```
Expand All @@ -75,7 +72,6 @@ LLM Sandbox also supports copying files between the host and the sandbox:
```python
from llm_sandbox import SandboxSession

# Create a new sandbox session
with SandboxSession(lang="python", keep_template=True) as session:
# Copy a file from the host to the sandbox
session.copy_to_runtime("test.py", "/sandbox/test.py")
Expand All @@ -93,7 +89,6 @@ For other languages usage, please refer to the [examples](examples/code_runner.p
You can also use [remote Docker host](https://docs.docker.com/config/daemon/remote-access/) as below:

```python
import os
import docker
from llm_sandbox import SandboxSession

Expand Down

0 comments on commit 1258572

Please sign in to comment.