bohmian commited on
Commit
dbc2ebf
1 Parent(s): 2b8a96e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -28,8 +28,10 @@ fmp_api_key = os.environ['FMP_API_KEY']
28
  # initialize the default model for embedding the tokenized texts, the articles are stored in this embedded form in the vector database
29
  hf_embeddings = HuggingFaceEmbeddings()
30
 
31
- os.system("rm -r chromadb_earnings_transcripts_extracted")
32
- os.system("rm earnings_transcripts_chromadb.zip")
 
 
33
  os.system("wget https://github.com/damianboh/test_earnings_calls/raw/main/earnings_transcripts_chromadb.zip")
34
  os.system("unzip earnings_transcripts_chromadb.zip -d chromadb_earnings_transcripts_extracted")
35
 
 
28
  # initialize the default model for embedding the tokenized texts, the articles are stored in this embedded form in the vector database
29
  hf_embeddings = HuggingFaceEmbeddings()
30
 
31
+ if os.path.exists("chromadb_earnings_transcripts_extracted"):
32
+ os.system("rm -r chromadb_earnings_transcripts_extracted")
33
+ if os.path.exists("earnings_transcripts_chromadb.zip"):
34
+ os.system("rm earnings_transcripts_chromadb.zip")
35
  os.system("wget https://github.com/damianboh/test_earnings_calls/raw/main/earnings_transcripts_chromadb.zip")
36
  os.system("unzip earnings_transcripts_chromadb.zip -d chromadb_earnings_transcripts_extracted")
37