zlmqi commited on
Commit
976a15b
1 Parent(s): fb91144

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, model="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
 
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