Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,6 @@ def construct_index(directory_path):
|
|
12 |
max_chunk_overlap = 20
|
13 |
chunk_size_limit = 600
|
14 |
|
15 |
-
prompt_helper = prompt_helper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
16 |
-
|
17 |
llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0.7, model_name="gpt-4", max_tokens=num_outputs))
|
18 |
|
19 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
|
|
12 |
max_chunk_overlap = 20
|
13 |
chunk_size_limit = 600
|
14 |
|
|
|
|
|
15 |
llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0.7, model_name="gpt-4", max_tokens=num_outputs))
|
16 |
|
17 |
documents = SimpleDirectoryReader(directory_path).load_data()
|