Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
@@ -33,17 +33,17 @@ class EmbeddingService:
|
|
33 |
# gets the files, cleans them, and loads them into pinecone
|
34 |
results = self.get_transcripts(files)
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
|
43 |
# uploads them into pinecone
|
44 |
#doc_embedder.embed()
|
45 |
|
46 |
-
return
|
47 |
|
48 |
|
49 |
class QAService:
|
|
|
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,
|
38 |
+
files=results,
|
39 |
+
embedding=self.conf["embeddings"]["embedding"],
|
40 |
+
index_name=self.conf["embeddings"]["index_name"],
|
41 |
+
)
|
42 |
|
43 |
# uploads them into pinecone
|
44 |
#doc_embedder.embed()
|
45 |
|
46 |
+
return print(doc_embedder)
|
47 |
|
48 |
|
49 |
class QAService:
|