Skip to content

Commit

Permalink
Merge pull request #45 from OwlAIProject/bart/documentation
Browse files Browse the repository at this point in the history
Windows environment variable instructions
  • Loading branch information
trzy committed Feb 28, 2024
2 parents 3cd2065 + 00e4277 commit dd5e35b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
Binary file added docs/images/windows/windows_env_vars_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/windows_env_vars_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/windows_env_vars_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/windows_env_vars_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/server_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,38 @@ Configuration file keys can be overridden with environment variables. The format
export OWL_ASYNC_WHISPER_HF_TOKEN=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
```

On Windows, the equivalent command uses `set` and is:

```
set OWL_ASYNC_WHISPER_HF_TOKEN=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
```

However, this will create a variable that only persists in the current shell. To permanently add environment variables, press the ⊞ (Windows) key to bring up the start menu then type `environment`. Click the shortcut to the environment variable dialog.

<p align="center">
<img alt="System Properties shortcut in Start menu" src="../docs/images/windows/windows_env_vars_1.png"><br>
<i>Type "environment" in the Start menu to reveal a shortcut to the System Properties dialog.</i>
</p>

This will bring up System Properties. Click the "Environment Variables..." button on the bottom.

<p align="center">
<img alt="System Properties dialog" src="../docs/images/windows/windows_env_vars_2.png"><br>
<i>The System Properties dialog. Environment variables are accessed at the bottom.</i>
</p>

To add variables under your personal account, press the top-most "New..." button. To add them for all accounts, press the buttom one (under "System variables"). Enter each variable this way and then make sure to click OK. From now on, any new Command Prompt window will have these variables set.

<p align="center">
<img alt="Environment Variables dialog" src="../docs/images/windows/windows_env_vars_3.png"><br>
<i>Environment Variables dialog, allowing account-local or system-wide variables to be set.</i>
</p>

<p align="center">
<img alt="Entering new environment variable" src="../docs/images/windows/windows_env_vars_4.png"><br>
<i>Entering an environment variable.</i>
</p>



[<< Home](../README.md)

0 comments on commit dd5e35b

Please sign in to comment.