Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def construct_index(directory_path):
|
|
15 |
|
16 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
17 |
|
18 |
-
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0.
|
19 |
|
20 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
21 |
|
|
|
15 |
|
16 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
17 |
|
18 |
+
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0.0, model_name="text-davinci-003", max_tokens=num_outputs))
|
19 |
|
20 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
21 |
|