-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ede4d30
commit ebea2c7
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Streamlit | ||
|
||
|
||
## Local Deployment | ||
```bash | ||
streamlit run streamlit_ui.py -- --model_path path/to/model | ||
``` | ||
|
||
|
||
## Build Container | ||
```bash | ||
docker build \ | ||
--build-arg AWS_ACCESS_KEY_ID=key \ | ||
--build-arg AWS_SECRET_ACCESS_KEY="secret_key" \ | ||
-t streamlit_app:latest . | ||
``` | ||
|
||
Run: | ||
```bash | ||
docker run -it --rm -p 8501:8501 streamlit_app:latest | ||
``` | ||
|
||
|
||
# Gradio | ||
|
||
## Local Deployment | ||
```bash | ||
python gradio_ui.py --model_path path/to/model | ||
``` | ||
|
||
## Build Container | ||
```bash | ||
docker build \ | ||
--build-arg AWS_ACCESS_KEY_ID=key \ | ||
--build-arg AWS_SECRET_ACCESS_KEY="secret_key" \ | ||
-t gradio_app:latest . | ||
``` |