Spaces:
Paused
Paused
Updated app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,10 @@ import re
|
|
12 |
import transformers
|
13 |
from torch import bfloat16
|
14 |
from langchain_community.document_loaders import DirectoryLoader
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# Initialize embeddings and ChromaDB
|
17 |
model_name = "sentence-transformers/all-mpnet-base-v2"
|
|
|
12 |
import transformers
|
13 |
from torch import bfloat16
|
14 |
from langchain_community.document_loaders import DirectoryLoader
|
15 |
+
import subprocess
|
16 |
+
|
17 |
+
# Run setup.sh script before starting the app
|
18 |
+
subprocess.run(["/bin/bash", "setup.sh"], check=True)
|
19 |
|
20 |
# Initialize embeddings and ChromaDB
|
21 |
model_name = "sentence-transformers/all-mpnet-base-v2"
|