traversaal-ai commited on
Commit
c11e1ff
·
1 Parent(s): fb46b33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,9 +22,9 @@ def generate_response(user_prompt):
22
  # Create a dataset using GPT
23
 
24
  response = openai.ChatCompletion.create(
25
- model="gpt-3.5-turbo", # Use GPT-3.5 Turbo engine
26
- ,messages=[{"role": "system", "content": system_msg},
27
- {"role": "user", "content": prompt}]
28
  max_tokens=100, # You can adjust this to limit the response length
29
  )
30
  return response["choices"][0]["message"]["content"]
 
22
  # Create a dataset using GPT
23
 
24
  response = openai.ChatCompletion.create(
25
+ model="gpt-3.5-turbo", # Use GPT-3.5 Turbo engine,
26
+ messages=[{"role": "system", "content": system_msg},
27
+ {"role": "user", "content": prompt}],
28
  max_tokens=100, # You can adjust this to limit the response length
29
  )
30
  return response["choices"][0]["message"]["content"]