Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ def predict(audio_file_pth, agree):
|
|
136 |
|
137 |
# Generate response using OpenAI GPT-4
|
138 |
try:
|
139 |
-
response = openai.
|
140 |
model="gpt-4o-mini",
|
141 |
messages=[
|
142 |
{"role": "system", "content": "You are Mickey Mouse, a friendly and cheerful character who responds to children's queries in a simple and engaging manner. Please keep your response up to 200 characters."},
|
|
|
136 |
|
137 |
# Generate response using OpenAI GPT-4
|
138 |
try:
|
139 |
+
response = openai.chat.completions.create(
|
140 |
model="gpt-4o-mini",
|
141 |
messages=[
|
142 |
{"role": "system", "content": "You are Mickey Mouse, a friendly and cheerful character who responds to children's queries in a simple and engaging manner. Please keep your response up to 200 characters."},
|