Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -188,7 +188,7 @@ def initialize_qa_system(_vector_store):
|
|
| 188 |
try:
|
| 189 |
llm = OpenAI(
|
| 190 |
model_name="gpt-4", # Or another OpenAI model like "text-davinci-003"
|
| 191 |
-
api_key=
|
| 192 |
prompt_template="Extract the specific details relevant to the query accurately from the document without adding additional information that is not present in the text. Provide concise, clear responses that stay within the boundaries of the document's content."
|
| 193 |
)
|
| 194 |
|
|
|
|
| 188 |
try:
|
| 189 |
llm = OpenAI(
|
| 190 |
model_name="gpt-4", # Or another OpenAI model like "text-davinci-003"
|
| 191 |
+
api_key=os.environ.get('OPENAI_API_KEY'),
|
| 192 |
prompt_template="Extract the specific details relevant to the query accurately from the document without adding additional information that is not present in the text. Provide concise, clear responses that stay within the boundaries of the document's content."
|
| 193 |
)
|
| 194 |
|