tykiww commited on
Commit
0a73bc9
1 Parent(s): 4df0f2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,14 +10,14 @@ from server import EmbeddingService, QAService
10
 
11
  #################### Functions ####################
12
  def process_transcripts(files):
13
- with EmbeddingService() as e:
14
  e.run(files)
15
  # some way to wait or a progress bar?
16
  return 0
17
 
18
 
19
  def retrieve_answer(question):
20
- with QAService() as q:
21
  q.run(question)
22
  answer = retriever.answer()
23
  return answer
 
10
 
11
  #################### Functions ####################
12
  def process_transcripts(files):
13
+ with EmbeddingService(conf) as e:
14
  e.run(files)
15
  # some way to wait or a progress bar?
16
  return 0
17
 
18
 
19
  def retrieve_answer(question):
20
+ with QAService(conf) as q:
21
  q.run(question)
22
  answer = retriever.answer()
23
  return answer