set env
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ voice_id = os.getenv("ELEVENLABS_VOICE_ID")
|
|
| 29 |
|
| 30 |
# Load and process the transcripts
|
| 31 |
documents = []
|
| 32 |
-
folder_path = "transcriptions"
|
| 33 |
|
| 34 |
for filename in os.listdir(folder_path):
|
| 35 |
if filename.endswith(".txt"):
|
|
|
|
| 29 |
|
| 30 |
# Load and process the transcripts
|
| 31 |
documents = []
|
| 32 |
+
folder_path = "transcriptions-local" if os.getenv("ENVIRONMENT") == "local" else "transcriptions"
|
| 33 |
|
| 34 |
for filename in os.listdir(folder_path):
|
| 35 |
if filename.endswith(".txt"):
|