Spaces:
Sleeping
Sleeping
Madhuslista
commited on
Commit
·
9fff38f
1
Parent(s):
09d8ac0
Feature: Add config file
Browse files- lib/config.py +32 -0
lib/config.py
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
|
4 |
+
from pathlib import Path
|
5 |
+
|
6 |
+
# -->> Tunables <<---------------------
|
7 |
+
|
8 |
+
|
9 |
+
# -->> Definitions <<------------------
|
10 |
+
|
11 |
+
# Repository root directory
|
12 |
+
ROOT_DIR = Path(__file__).resolve().parent.parent
|
13 |
+
|
14 |
+
# Media folder
|
15 |
+
MEDIA_DIR = ROOT_DIR / "RESULTS" / "Media"
|
16 |
+
|
17 |
+
# Media subfolders
|
18 |
+
AUDIO_DIR = MEDIA_DIR / "Audios"
|
19 |
+
VIDEOS_DIR = MEDIA_DIR / "Videos"
|
20 |
+
TRANSCRIPTS_DIR = MEDIA_DIR / "Transcriptions"
|
21 |
+
|
22 |
+
# File extensions
|
23 |
+
AUDIO_EXT = ".mp3"
|
24 |
+
TEXT_EXT = ".txt"
|
25 |
+
|
26 |
+
# -->> API <<--------------------------
|
27 |
+
|
28 |
+
|
29 |
+
# -->> Execute <<----------------------
|
30 |
+
|
31 |
+
|
32 |
+
# -->> Export <<-----------------------
|