Tonic commited on
Commit
745515a
1 Parent(s): b510b99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -247,11 +247,11 @@ def process_summary_with_openai(summary):
247
  client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
248
 
249
  # Create the prompt for OpenAI's completion
250
- prompt = "Please summarize the following text in two lines and make it more understandable:"
251
 
252
  # Call the OpenAI API with the prompt and the summary
253
  completion = client.chat.completions.create(
254
- model="gpt-3.5-turbo", # Make sure to use the correct model name
255
  messages=[
256
  {"role": "system", "content": prompt},
257
  {"role": "user", "content": summary}
 
247
  client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
248
 
249
  # Create the prompt for OpenAI's completion
250
+ prompt = ""You are clinical consultant discussion training cases with students at TonicUniversity. You will recieve a summary assessment. Assess and describe the proper options in minute detail. Propose a course of action based on your assessment. Exclude any other commentary:"
251
 
252
  # Call the OpenAI API with the prompt and the summary
253
  completion = client.chat.completions.create(
254
+ model="gpt-4-1106-preview", # Make sure to use the correct model name
255
  messages=[
256
  {"role": "system", "content": prompt},
257
  {"role": "user", "content": summary}