Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,10 @@ from server import EmbeddingService, QAService
|
|
13 |
def process_transcripts(files, context):
|
14 |
|
15 |
time.sleep(15)
|
16 |
-
|
17 |
-
|
18 |
# some way to wait or a progress bar?
|
19 |
-
return "Completed Loading Data"
|
20 |
|
21 |
|
22 |
def retrieve_answer(question):
|
|
|
13 |
def process_transcripts(files, context):
|
14 |
|
15 |
time.sleep(15)
|
16 |
+
with EmbeddingService(conf) as e:
|
17 |
+
f = e.run(files)
|
18 |
# some way to wait or a progress bar?
|
19 |
+
return f # "Completed Loading Data"
|
20 |
|
21 |
|
22 |
def retrieve_answer(question):
|