tykiww commited on
Commit
09ca515
·
verified ·
1 Parent(s): dd35f9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -21,7 +21,8 @@ def process_transcripts(files, context, session_key):
21
 
22
  print(session_key)
23
  with EmbeddingService(conf,
24
- pinecone=pc_connector) as e:
 
25
  f = e.run(files)
26
  # some way to wait or a progress bar?
27
  return "Completed Loading Data"
@@ -34,7 +35,8 @@ def retrieve_answer(question, goals, session_key):
34
  pinecone=pc_connector,
35
  model_pipeline=pipelines,
36
  question=question,
37
- goals=goals) as q:
 
38
  f, c = q.run()
39
 
40
  return f, c
 
21
 
22
  print(session_key)
23
  with EmbeddingService(conf,
24
+ pinecone=pc_connector,
25
+ session_key) as e:
26
  f = e.run(files)
27
  # some way to wait or a progress bar?
28
  return "Completed Loading Data"
 
35
  pinecone=pc_connector,
36
  model_pipeline=pipelines,
37
  question=question,
38
+ goals=goals,
39
+ session_key=session_key) as q:
40
  f, c = q.run()
41
 
42
  return f, c