Commit
·
5d4bd93
1
Parent(s):
96a96d9
minor fix
Browse files- README.md +1 -1
- src/utils.py +2 -2
README.md
CHANGED
|
@@ -18,7 +18,7 @@ streamlit run src/app.py
|
|
| 18 |
|
| 19 |
If you want to work with you own images just replace the last line with:
|
| 20 |
```
|
| 21 |
-
streamlit run src/app.py -- --
|
| 22 |
```
|
| 23 |
|
| 24 |
In your terminal you will see the link to the running local service similar to :
|
|
|
|
| 18 |
|
| 19 |
If you want to work with you own images just replace the last line with:
|
| 20 |
```
|
| 21 |
+
streamlit run src/app.py -- --image_folder PATH_TO_YOUR_IMAGE_FOLDER
|
| 22 |
```
|
| 23 |
|
| 24 |
In your terminal you will see the link to the running local service similar to :
|
src/utils.py
CHANGED
|
@@ -9,9 +9,9 @@ import streamlit as st
|
|
| 9 |
@st.cache
|
| 10 |
def get_path_to_the_image():
|
| 11 |
parser = argparse.ArgumentParser()
|
| 12 |
-
parser.add_argument("--
|
| 13 |
args = parser.parse_args()
|
| 14 |
-
return getattr(args, "
|
| 15 |
|
| 16 |
|
| 17 |
@st.cache
|
|
|
|
| 9 |
@st.cache
|
| 10 |
def get_path_to_the_image():
|
| 11 |
parser = argparse.ArgumentParser()
|
| 12 |
+
parser.add_argument("--image_folder", default="images")
|
| 13 |
args = parser.parse_args()
|
| 14 |
+
return getattr(args, "image_folder")
|
| 15 |
|
| 16 |
|
| 17 |
@st.cache
|