Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
@@ -21,7 +21,6 @@ class EmbeddingService:
|
|
21 |
"openai": "", # leaving this alone for future use.
|
22 |
}
|
23 |
|
24 |
-
|
25 |
def get_transcripts(self, files):
|
26 |
# Get filepaths and load them in document format
|
27 |
filepaths = [file.name for file in files]
|
@@ -30,10 +29,9 @@ class EmbeddingService:
|
|
30 |
|
31 |
return results
|
32 |
|
33 |
-
|
34 |
def run(self, files):
|
35 |
# gets the files, cleans them, and loads them into pinecone
|
36 |
-
results = get_transcripts(files)
|
37 |
|
38 |
#doc_embedder = DocumentEmbedder(
|
39 |
# api_keys=self.keys,
|
|
|
21 |
"openai": "", # leaving this alone for future use.
|
22 |
}
|
23 |
|
|
|
24 |
def get_transcripts(self, files):
|
25 |
# Get filepaths and load them in document format
|
26 |
filepaths = [file.name for file in files]
|
|
|
29 |
|
30 |
return results
|
31 |
|
|
|
32 |
def run(self, files):
|
33 |
# gets the files, cleans them, and loads them into pinecone
|
34 |
+
results = self.get_transcripts(files)
|
35 |
|
36 |
#doc_embedder = DocumentEmbedder(
|
37 |
# api_keys=self.keys,
|