Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ os.environ["OPENAI_API_KEY"] = 'sk-TueoHxxhKJB3aZpilkN3T3BlbkFJY5RKtoBTLu43LijFt
|
|
8 |
def construct_index(directory_path):
|
9 |
num_outputs = 256
|
10 |
|
11 |
-
_llm_predictor = LLMPredictor(llm=OpenAI(temperature=0.5, model_name="
|
12 |
|
13 |
service_context = ServiceContext.from_defaults(llm_predictor=_llm_predictor)
|
14 |
|
|
|
8 |
def construct_index(directory_path):
|
9 |
num_outputs = 256
|
10 |
|
11 |
+
_llm_predictor = LLMPredictor(llm=OpenAI(temperature=0.5, model_name="text-davinci-003", max_tokens=num_outputs))
|
12 |
|
13 |
service_context = ServiceContext.from_defaults(llm_predictor=_llm_predictor)
|
14 |
|