Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ session_id = uuid4()
|
|
45 |
# deprecated (llama-index 0.9)
|
46 |
storage_context = StorageContext.from_defaults(persist_dir='./')
|
47 |
# gpt-3.5-turbo is the current default model
|
48 |
-
llm = OpenAI(temperature=0.5,
|
49 |
service_context = ServiceContext.from_defaults(llm=llm)
|
50 |
index = load_index_from_storage(storage_context, service_context=service_context)
|
51 |
# for llama-index 0.10
|
|
|
45 |
# deprecated (llama-index 0.9)
|
46 |
storage_context = StorageContext.from_defaults(persist_dir='./')
|
47 |
# gpt-3.5-turbo is the current default model
|
48 |
+
llm = OpenAI(temperature=0.5, model_name="gpt-4")
|
49 |
service_context = ServiceContext.from_defaults(llm=llm)
|
50 |
index = load_index_from_storage(storage_context, service_context=service_context)
|
51 |
# for llama-index 0.10
|