Part 3 — Site Packages [Customize your app]
In Supervisely applications, we have provided the ability to add site-packages.
Table of content
Step 1 — Create requirements.txt
file in application root
requirements.txt
file in application root
Step 2 — Add a list of all required libraries with versions
requirements.txt
tqdm==4.62.0
Step 3 — Add library to code
src/main.py
import supervisely_lib as sly
from tqdm import tqdm
worlds = ['Westeros', 'Azeroth', 'Middle Earth', 'Narnia']
sly_logger = sly.logger
try:
for world in tqdm(worlds):
sly_logger.info(f'Hello {world}!')
if 'Our World' not in worlds:
raise ValueError(f"Can't find Our World")
except Exception as ex:
sly_logger.warning(ex)
Step 4 — Results
Last updated
Was this helpful?