This commit is contained in:
Martin Jaros 2024-05-03 19:34:21 +02:00
commit 340389f4f4
4 changed files with 54 additions and 881 deletions

4
.gitignore vendored
View file

@ -1,2 +1,4 @@
recordings/ recordings/
large_test_data/ large_test_data/
__pycache__/
lsb_package/__pycache__/

596
RAG.ipynb

File diff suppressed because one or more lines are too long

View file

@ -1,307 +0,0 @@
absl-py==2.0.0
accelerate==0.23.0
aiohttp==3.8.6
aiosignal==1.3.1
annotated-types==0.6.0
anyascii==0.3.2
appdirs==1.4.4
arandr==0.1.10
asttokens==2.4.1
async-timeout==4.0.3
attrs==21.2.0
audioread==3.0.1
Babel==2.13.0
bangla==0.0.2
bcc==0.18.0
beautifulsoup4==4.10.0
beets==1.6.0
beniget==0.4.1
blinker==1.6.3
blis==0.7.11
bnnumerizer==0.0.2
bnunicodenormalizer==0.1.6
Brlapi==0.8.3
Brotli==1.0.9
cachetools==5.3.1
catalogue==2.0.10
certifi==2020.6.20
cffi==1.16.0
chardet==4.0.0
charset-normalizer==3.3.0
chrome-gnome-shell==0.0.0
clean-fid==0.1.35
click==8.1.7
clip-anytorch==2.5.2
cloudpathlib==0.16.0
colorama==0.4.4
comm==0.2.1
command-not-found==0.3
confection==0.1.4
confuse==2.0.1
contourpy==1.1.1
coqpit==0.0.17
cryptography==3.4.8
cupshelpers==1.0
cycler==0.12.1
cymem==2.0.8
Cython==0.29.30
dateparser==1.1.8
dbus-python==1.2.18
debugpy==1.8.1
decorator==5.1.1
defer==1.0.6
defusedxml==0.7.1
distlib==0.3.7
distro==1.7.0
docker==5.0.3
docker-compose==1.29.2
docker-pycreds==0.4.0
dockerpty==0.4.1
docopt==0.6.2
ds4drv==0.5.1
einops==0.6.1
encodec==0.1.1
evdev==1.4.0
exceptiongroup==1.2.0
executing==2.0.1
fasteners==0.14.1
filelock==3.12.4
Flask==2.3.3
fonttools==4.43.1
frozenlist==1.4.0
fs==2.4.12
fsspec==2023.6.0
ftfy==6.1.1
g2pkk==0.1.2
gast==0.5.2
gitdb==4.0.10
GitPython==3.1.37
google-auth==2.23.3
google-auth-oauthlib==1.0.0
grpcio==1.59.0
gruut==2.2.3
gruut-ipa==0.13.0
gruut-lang-de==2.0.0
gruut-lang-en==2.0.0
gruut-lang-es==2.0.0
gruut-lang-fr==2.0.2
hangul-romanize==0.1.0
hidpidaemon==18.4.6
html5lib==1.1
httplib2==0.20.2
huggingface-hub==0.18.0
idna==3.3
imageio==2.31.5
importlib-metadata==4.6.4
inflect==5.6.2
ipykernel==6.29.3
ipython==8.22.2
itsdangerous==2.1.2
jamo==0.4.1
jedi==0.19.1
jeepney==0.7.1
jellyfish==1.0.3
jieba==0.42.1
Jinja2==3.1.2
joblib==1.3.2
jsonlines==1.2.0
jsonmerge==1.9.2
jsonschema==3.2.0
jupyter_client==8.6.0
jupyter_core==5.7.1
k-diffusion==0.0.16
kernelstub==3.1.4
keyring==23.5.0
kiwisolver==1.4.5
kornia==0.7.0
langcodes==3.3.0
language-selector==0.1
launchpadlib==1.10.16
lazr.restfulclient==0.14.4
lazr.uri==1.0.6
lazy_loader==0.3
librosa==0.10.0
llvmlite==0.40.1
louis==3.20.0
lxml==4.8.0
lz4==3.1.3+dfsg
macaroonbakery==1.3.1
Mako==1.1.3
Markdown==3.5
MarkupSafe==2.1.3
matplotlib==3.7.3
matplotlib-inline==0.1.6
mediafile==0.12.0
meson==0.61.2
monotonic==1.6
more-itertools==8.10.0
mpmath==1.3.0
msgpack==1.0.7
multidict==6.0.4
munkres==1.1.4
murmurhash==1.0.10
musicbrainzngs==0.7.1
mutagen==1.46.0
nest-asyncio==1.6.0
netaddr==0.8.0
netifaces==0.11.0
networkx==2.8.8
nltk==3.8.1
num2words==0.5.12
numba==0.57.0
numpy==1.22.0
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.18.1
nvidia-nvjitlink-cu12==12.2.140
nvidia-nvtx-cu12==12.1.105
oauthlib==3.2.0
odfpy==1.4.2
olefile==0.46
packaging==23.1
pandas==1.5.3
parso==0.8.3
pathtools==0.1.2
pexpect==4.9.0
Pillow==10.0.1
pip-autoremove==0.10.0
pipenv==2023.10.20
platformdirs==3.11.0
ply==3.11
pooch==1.7.0
pop-transition==1.1.2
preshed==3.0.9
prompt-toolkit==3.0.43
protobuf==4.24.4
protontricks==1.10.5
psutil==5.9.5
ptyprocess==0.7.0
pure-eval==0.2.2
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycairo==1.20.1
pycparser==2.21
pycryptodomex==3.18.0
pycups==2.0.1
pydantic==2.6.4
pydantic_core==2.16.3
pydbus==0.6.0
pyenchant==3.2.0
Pygments==2.11.2
PyGObject==3.42.1
PyJWT==2.3.0
pymacaroons==0.13.0
PyNaCl==1.5.0
pynndescent==0.5.10
pyparsing==2.4.7
pypinyin==0.49.0
PyQt5==5.15.6
PyQt5-sip==12.9.1
pyRFC3339==1.1
pyrsistent==0.18.1
pysbd==0.3.4
python-apt==2.4.0+ubuntu3
python-crfsuite==0.9.9
python-dateutil==2.8.2
python-debian==0.1.43+ubuntu1.1
python-dotenv==0.19.2
python-gnupg==0.4.8
python-libdiscid==2.0.1
python-magic==0.4.24
python-sane==2.9.1
python-xlib==0.29
pythran==0.10.0
pytz==2022.1
pyudev==0.24.1
pyxdg==0.27
PyYAML==6.0.1
pyzmq==25.1.2
ranger-fm==1.9.3
regex==2023.10.3
repolib==2.2.1
repoman==1.4.0
reportlab==3.6.8
requests==2.25.1
requests-oauthlib==1.3.1
resize-right==0.0.2
rsa==4.9
safetensors==0.4.0
scikit-image==0.22.0
scikit-learn==1.3.0
scipy==1.11.3
scour==0.38.2
screen-resolution-extra==0.0.0
SecretStorage==3.3.1
sentry-sdk==1.32.0
sessioninstaller==0.0.0
setproctitle==1.3.3
six==1.16.0
smart-open==6.4.0
smmap==5.0.1
soundfile==0.12.1
soupsieve==2.3.1
soxr==0.3.7
spacy==3.7.4
spacy-legacy==3.0.12
spacy-loggers==1.0.5
srsly==2.4.8
stack-data==0.6.3
SudachiDict-core==20240409
SudachiPy==0.6.8
sympy==1.12
systemd-python==234
tbb==2021.10.0
tensorboard==2.14.1
tensorboard-data-server==0.7.1
texttable==1.6.4
thinc==8.2.3
threadpoolctl==3.2.0
tifffile==2023.9.26
tokenizers==0.13.3
torch==2.1.0
torchaudio==2.1.0
torchdiffeq==0.2.3
torchsde==0.2.6
torchvision==0.16.0
tornado==6.4
tqdm==4.64.1
trainer==0.0.36
traitlets==5.14.1
trampoline==0.1.2
transformers==4.33.3
triton==2.1.0
TTS==0.22.0
typer==0.9.4
typing_extensions==4.8.0
tzlocal==5.1
ubuntu-drivers-common==0.0.0
ubuntu-pro-client==8001
ufoLib2==0.13.1
ufw==0.36.1
umap-learn==0.5.4
unicodedata2==14.0.0
Unidecode==1.3.7
urllib3==2.0.6
vboxapi==1.0
vdf==3.4
virtualenv==20.24.6
wadllib==1.3.6
wandb==0.15.12
wasabi==1.1.2
wcwidth==0.2.8
weasel==0.3.4
webencodings==0.5.1
websocket-client==1.2.3
websockets==11.0.3
Werkzeug==3.0.0
xdg==5
xkit==0.0.0
yarl==1.9.2
zipp==1.0.0

28
test_main.py Normal file
View file

@ -0,0 +1,28 @@
import main
import unittest
import os
import unittest
import tkinter as tk
from lsb_package import StartPage, TranscriptionPage, KeywordsPage, LlmPage
class TestApp(unittest.TestCase):
def setUp(self):
self.app = main.App()
def test_appExists(self):
self.assertIsNotNone(self.app)
def test_init_title(self):
self.assertEqual(self.app.title(), "Lecture Summary Bot")
def test_init_frames(self):
for F in [StartPage, TranscriptionPage, KeywordsPage, LlmPage]:
frame_name = str(F)
self.assertIn(str(frame_name), {str(k): v for k, v in self.app.frames.items()})
if __name__ == "__main__":
unittest.main()