kp0001 commited on
Commit
dcb4a3f
·
verified ·
1 Parent(s): a3fc08c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ def handle_query(openai_key, query, query_length):
108
  )
109
 
110
  # Use the ChatCompletion API instead of Completion
111
- response = openai.ChatCompletion.create(
112
  model="gpt-4",
113
  messages=[
114
  {"role": "system", "content": "You are a helpful assistant that answers questions about Indian law."},
 
108
  )
109
 
110
  # Use the ChatCompletion API instead of Completion
111
+ response = openai.chat.Completion.create(
112
  model="gpt-4",
113
  messages=[
114
  {"role": "system", "content": "You are a helpful assistant that answers questions about Indian law."},