tykiww commited on
Commit
17c539c
1 Parent(s): 5f8fb88

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +7 -7
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
- #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 results
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: