Commit
•
54af1ee
1
Parent(s):
242631d
better visual elements
Browse files- src/visuals.py +10 -4
src/visuals.py
CHANGED
@@ -16,7 +16,7 @@ def select_image(path_to_images: str = "images"):
|
|
16 |
|
17 |
|
18 |
def show_transform_control(transform_params: dict):
|
19 |
-
param_values = {
|
20 |
if len(transform_params) == 0:
|
21 |
st.sidebar.text("Transform has no parameters")
|
22 |
else:
|
@@ -29,9 +29,15 @@ def show_transform_control(transform_params: dict):
|
|
29 |
def show_credentials():
|
30 |
st.markdown("* * *")
|
31 |
st.subheader("Credentials:")
|
32 |
-
st.markdown(
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
|
37 |
def show_docstring(obj_with_ds):
|
|
|
16 |
|
17 |
|
18 |
def show_transform_control(transform_params: dict):
|
19 |
+
param_values = {"p": 1.0}
|
20 |
if len(transform_params) == 0:
|
21 |
st.sidebar.text("Transform has no parameters")
|
22 |
else:
|
|
|
29 |
def show_credentials():
|
30 |
st.markdown("* * *")
|
31 |
st.subheader("Credentials:")
|
32 |
+
st.markdown(
|
33 |
+
"Source: [github.com/IliaLarchenko/albumentations-demo](https://github.com/IliaLarchenko/albumentations-demo)"
|
34 |
+
)
|
35 |
+
st.markdown(
|
36 |
+
"Albumentations library: [github.com/albumentations-team/albumentations](https://github.com/albumentations-team/albumentations)"
|
37 |
+
)
|
38 |
+
st.markdown(
|
39 |
+
"Image Source: [pexels.com/royalty-free-images](https://pexels.com/royalty-free-images/)"
|
40 |
+
)
|
41 |
|
42 |
|
43 |
def show_docstring(obj_with_ds):
|