Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,8 @@ def context_gpt_response(question):
|
|
70 |
context = ''
|
71 |
for match in match_list:
|
72 |
context += str(match[0])
|
|
|
|
|
73 |
prep = f"This is an OpenAI model tuned to answer questions specific to the Qualia Research institute, a research institute that focuses on consciousness. Here is some question-specific context, and then the Question to answer, related to consciousness, the human experience, and phenomenology: {context}. Here is a question specific to QRI and consciousness in general Q: {question} A: "
|
74 |
# Generate an answer
|
75 |
response = openai.Completion.create(
|
|
|
70 |
context = ''
|
71 |
for match in match_list:
|
72 |
context += str(match[0])
|
73 |
+
context = context[:-1500]
|
74 |
+
|
75 |
prep = f"This is an OpenAI model tuned to answer questions specific to the Qualia Research institute, a research institute that focuses on consciousness. Here is some question-specific context, and then the Question to answer, related to consciousness, the human experience, and phenomenology: {context}. Here is a question specific to QRI and consciousness in general Q: {question} A: "
|
76 |
# Generate an answer
|
77 |
response = openai.Completion.create(
|