Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|