Skip to content

Commit

Permalink
fixed inject_env to kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
stikkireddy committed Feb 21, 2024
1 parent 7995851 commit f57eb00
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ You can pass custom environment variables from your notebook to any of the frame

```python
from dbtunnel import dbtunnel
dbtunnel.<framework>(<script_path>).inject_env({
dbtunnel.<framework>(<script_path>).inject_env(**{
"MY_CUSTOM_ENV": "my_custom_env_value"
}).run()
```
Expand All @@ -149,12 +149,19 @@ For example:

```python
from dbtunnel import dbtunnel
dbtunnel.gradio(demo).inject_env({
dbtunnel.gradio(demo).inject_env(**{
"MY_CUSTOM_ENV": "my_custom_env_value"
}).run()
```

Keep in mind environment variables need to be strings!
Alternatively

```python
from dbtunnel import dbtunnel
dbtunnel.gradio(demo).inject_env(MY_CUSTOM_ENV="my_custom_env_value").run()
```

Keep in mind environment variables need to be keyword arguments!


## Exposing to internet using ngrok
Expand Down

0 comments on commit f57eb00

Please sign in to comment.