sanjeevbora commited on
Commit
c0b54ba
·
verified ·
1 Parent(s): 8b38c42

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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"