Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,14 @@ from server import EmbeddingService, QAService
|
|
9 |
|
10 |
|
11 |
#################### Functions ####################
|
12 |
-
def process_transcripts(
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
# some way to wait or a progress bar?
|
16 |
-
return
|
17 |
|
18 |
|
19 |
def retrieve_answer(question):
|
@@ -42,7 +45,7 @@ def main(conf):
|
|
42 |
goals = gr.Textbox(label="Goals for the Meeting",
|
43 |
value=conf["defaults"]["goals"]) # not incorporated yet. Will be with Q&A.
|
44 |
repository = gr.Textbox(label="Blank", visible=False) # since there is no output.
|
45 |
-
load_file.upload(process_transcripts, load_file, repository)
|
46 |
|
47 |
|
48 |
|
|
|
9 |
|
10 |
|
11 |
#################### Functions ####################
|
12 |
+
def process_transcripts(inputs):
|
13 |
+
files, context = inputs
|
14 |
+
print(files)
|
15 |
+
print(context)
|
16 |
+
#with EmbeddingService(conf) as e:
|
17 |
+
# e.run(files)
|
18 |
# some way to wait or a progress bar?
|
19 |
+
return context
|
20 |
|
21 |
|
22 |
def retrieve_answer(question):
|
|
|
45 |
goals = gr.Textbox(label="Goals for the Meeting",
|
46 |
value=conf["defaults"]["goals"]) # not incorporated yet. Will be with Q&A.
|
47 |
repository = gr.Textbox(label="Blank", visible=False) # since there is no output.
|
48 |
+
load_file.upload(process_transcripts, [load_file, goals], repository)
|
49 |
|
50 |
|
51 |
|