Spaces:
Sleeping
Sleeping
Update services/qa_service/qna.py
Browse files
services/qa_service/qna.py
CHANGED
@@ -66,11 +66,11 @@ class QAService:
|
|
66 |
|
67 |
context = ""
|
68 |
for i in range(transcript_count):
|
69 |
-
context
|
70 |
-
context
|
71 |
-
context
|
72 |
if (i+1) < transcript_count:
|
73 |
-
context
|
74 |
|
75 |
print(context)
|
76 |
prompt = format_prompt(self.question, context)
|
|
|
66 |
|
67 |
context = ""
|
68 |
for i in range(transcript_count):
|
69 |
+
context += "Transcript snippet %s" % (i + 1)
|
70 |
+
context += "\n"
|
71 |
+
context += full_context[i]["text"]
|
72 |
if (i+1) < transcript_count:
|
73 |
+
context += "\n\n"
|
74 |
|
75 |
print(context)
|
76 |
prompt = format_prompt(self.question, context)
|