Aswini96 commited on
Commit
d81cfc9
·
verified ·
1 Parent(s): 97cce78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def ask_openai(prompt, secret_word):
23
 
24
  try:
25
  response = client.chat.completions.create(
26
- model="gpt-3.5-turbo",
27
  messages=[
28
  {"role": "system", "content": system_message},
29
  {"role": "user", "content": prompt}
@@ -31,6 +31,7 @@ def ask_openai(prompt, secret_word):
31
  temperature=0.7,
32
  max_tokens=100,
33
  )
 
34
  return response.choices[0].message["content"]
35
  except Exception as e:
36
  return f"Error: {str(e)}"
 
23
 
24
  try:
25
  response = client.chat.completions.create(
26
+ model="gpt-4o",
27
  messages=[
28
  {"role": "system", "content": system_message},
29
  {"role": "user", "content": prompt}
 
31
  temperature=0.7,
32
  max_tokens=100,
33
  )
34
+ print(response)
35
  return response.choices[0].message["content"]
36
  except Exception as e:
37
  return f"Error: {str(e)}"