Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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."},
|