Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,7 @@ def predict(audio_file_pth, agree):
|
|
137 |
# Generate response using OpenAI GPT-4
|
138 |
# Generate response using OpenAI GPT-4
|
139 |
try:
|
140 |
-
response =
|
141 |
model="gpt-4o-mini",
|
142 |
messages=[
|
143 |
{"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."},
|
|
|
137 |
# Generate response using OpenAI GPT-4
|
138 |
# Generate response using OpenAI GPT-4
|
139 |
try:
|
140 |
+
response = openai.chat.completions.create(
|
141 |
model="gpt-4o-mini",
|
142 |
messages=[
|
143 |
{"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."},
|