Spaces:
Sleeping
Sleeping
Add missing constants modules and some edits
Browse files- README.md +3 -1
- app.py +3 -0
- constants.py +54 -0
README.md
CHANGED
@@ -10,4 +10,6 @@ pinned: false
|
|
10 |
license: creativeml-openrail-m
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
10 |
license: creativeml-openrail-m
|
11 |
---
|
12 |
|
13 |
+
## Video Pdf
|
14 |
+
|
15 |
+
> A [Glue Labs](https://gluelabs.com) project
|
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import argparse
|
2 |
import datetime
|
3 |
import os
|
|
|
1 |
+
# (C) Glue Labs Private Limited 2023 (gluelabs.com)
|
2 |
+
# All rights reserved
|
3 |
+
|
4 |
import argparse
|
5 |
import datetime
|
6 |
import os
|
constants.py
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# (C) Glue Labs Private Limited 2023
|
2 |
+
# All rights reserved
|
3 |
+
|
4 |
+
import os
|
5 |
+
from chromadb.config import Settings
|
6 |
+
|
7 |
+
# to store all the generated files (*.pdf, *pptx, *webm, *mp3)
|
8 |
+
OUTDIR="out"
|
9 |
+
|
10 |
+
# path extra out files
|
11 |
+
OUTEXTRA="out/extra"
|
12 |
+
|
13 |
+
# yt video nameformat and loacation
|
14 |
+
YT_DEST=f"{OUTEXTRA}/vid-"
|
15 |
+
|
16 |
+
# name for genrated pptx
|
17 |
+
PPTX_DEST = f"{OUTDIR}/out.pptx"
|
18 |
+
|
19 |
+
# name for generated markdown summary file
|
20 |
+
MD_DEST = f"{OUTEXTRA}/summary.md"
|
21 |
+
|
22 |
+
# name for generated png files
|
23 |
+
PNG_DEST = f"{OUTEXTRA}"
|
24 |
+
|
25 |
+
# name for generated ppt
|
26 |
+
PPT_DEST = f"{OUTDIR}/out.ppt"
|
27 |
+
|
28 |
+
## MARP CONFIGURATION
|
29 |
+
MARP_01 = {
|
30 |
+
"theme": "uncover",
|
31 |
+
"background": "",
|
32 |
+
"class": "invert",
|
33 |
+
}
|
34 |
+
|
35 |
+
MARP_GAIA = {
|
36 |
+
"theme": "gaia",
|
37 |
+
"background": "",
|
38 |
+
"class": "lead",
|
39 |
+
}
|
40 |
+
|
41 |
+
MARP_02 = {
|
42 |
+
"theme": "marpit-theme",
|
43 |
+
"background": "",
|
44 |
+
"class": "",
|
45 |
+
}
|
46 |
+
|
47 |
+
# ChromaDB settings
|
48 |
+
EMBEDDINGS = "hkunlp/instructor-large"
|
49 |
+
|
50 |
+
# summarizer options
|
51 |
+
SUM_CHAIN_TYPE = "stuff"
|
52 |
+
|
53 |
+
YT_CHAPTER_ENDPOINT = "https://yt.lemnoslife.com/videos?part=chapters&id="
|
54 |
+
NO_CHAPTERS = False
|