awacke1 commited on
Commit
9c6a5dd
โ€ข
1 Parent(s): f9b7af1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1010,7 +1010,7 @@ def read_file_content(file,max_length):
1010
  def chat_with_model(prompt, document_section='', model_choice='gpt-3.5-turbo'): # gpt-4-0125-preview gpt-3.5-turbo
1011
  #def chat_with_model(prompt, document_section='', model_choice='gpt-4-0125-preview'): # gpt-4-0125-preview gpt-3.5-turbo
1012
  model = model_choice
1013
- conversation = [{'role': 'system', 'content': 'You are a helpful assistant.'}]
1014
  conversation.append({'role': 'user', 'content': prompt})
1015
  if len(document_section)>0:
1016
  conversation.append({'role': 'assistant', 'content': document_section})
 
1010
  def chat_with_model(prompt, document_section='', model_choice='gpt-3.5-turbo'): # gpt-4-0125-preview gpt-3.5-turbo
1011
  #def chat_with_model(prompt, document_section='', model_choice='gpt-4-0125-preview'): # gpt-4-0125-preview gpt-3.5-turbo
1012
  model = model_choice
1013
+ conversation = [{'role': 'system', 'content': 'You are a coder, inventor, and writer of quotes on wisdom as a helpful expert in all fields of health, math, development and AI using python.'}]
1014
  conversation.append({'role': 'user', 'content': prompt})
1015
  if len(document_section)>0:
1016
  conversation.append({'role': 'assistant', 'content': document_section})