Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
32 |
-
os.system("rm
|
|
|
|
|
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 |
|