IliaLarchenko commited on
Commit
cb3d757
1 Parent(s): 84a40f2

Format fix

Browse files
Files changed (3) hide show
  1. .pre-commit-config.yaml +1 -1
  2. requirements.txt +1 -1
  3. src/app.py +11 -5
.pre-commit-config.yaml CHANGED
@@ -11,7 +11,7 @@ repos:
11
  - id: pretty-format-json
12
  args: [--autofix]
13
  - repo: https://github.com/psf/black
14
- rev: 19.3b0
15
  hooks:
16
  - id: black
17
  args: [--config=black.toml]
 
11
  - id: pretty-format-json
12
  args: [--autofix]
13
  - repo: https://github.com/psf/black
14
+ rev: "24.2.0"
15
  hooks:
16
  - id: black
17
  args: [--config=black.toml]
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
  albumentations==0.4.3
2
- streamlit==1.10
3
  altair==4.0
 
 
1
  albumentations==0.4.3
 
2
  altair==4.0
3
+ streamlit==1.10
src/app.py CHANGED
@@ -18,10 +18,15 @@ from visuals import (
18
 
19
 
20
  def main():
21
- st.write("This online instance of the app will be discontinued after 18th of March 2024.")
22
- st.write("You can still use it locally of deploy your own instance. See the [source code](https://github.com/IliaLarchenko/albumentations-demo).")
23
- st.write("Or use the fork supported and deployed by albumentations team: [https://demo.albumentations.ai/](https://demo.albumentations.ai/).")
24
-
 
 
 
 
 
25
 
26
  # get CLI params: the path to images and image width
27
  path_to_images, width_original = get_arguments()
@@ -62,7 +67,8 @@ def main():
62
  except ValueError:
63
  error = 1
64
  st.title(
65
- "The error has occurred. Most probably you have passed wrong set of parameters. \
 
66
  Check transforms that change the shape of image."
67
  )
68
 
 
18
 
19
 
20
  def main():
21
+ st.write("This instance of the app will be discontinued after 18th of March 2024.")
22
+ st.write(
23
+ "You can still use it locally of deploy your own instance. See the \
24
+ [source code](https://github.com/IliaLarchenko/albumentations-demo)."
25
+ )
26
+ st.write(
27
+ "Or use the fork supported and deployed by albumentations team: \
28
+ [https://demo.albumentations.ai/](https://demo.albumentations.ai/)."
29
+ )
30
 
31
  # get CLI params: the path to images and image width
32
  path_to_images, width_original = get_arguments()
 
67
  except ValueError:
68
  error = 1
69
  st.title(
70
+ "The error has occurred. \
71
+ Most probably you have passed wrong set of parameters. \
72
  Check transforms that change the shape of image."
73
  )
74