Update app.py
Browse files
app.py
CHANGED
@@ -198,7 +198,7 @@ def generate_openai_description(classification, image_bytes):
|
|
198 |
|
199 |
|
200 |
# Call OpenAI with image and text
|
201 |
-
response = openai.
|
202 |
model="gpt-4o",
|
203 |
messages=[
|
204 |
{
|
@@ -590,7 +590,7 @@ Finishing
|
|
590 |
|
591 |
|
592 |
|
593 |
-
response = openai.
|
594 |
model="gpt-4o",
|
595 |
messages=[
|
596 |
{
|
|
|
198 |
|
199 |
|
200 |
# Call OpenAI with image and text
|
201 |
+
response = openai.ChatCompletion.create(
|
202 |
model="gpt-4o",
|
203 |
messages=[
|
204 |
{
|
|
|
590 |
|
591 |
|
592 |
|
593 |
+
response = openai.ChatCompletion.create(
|
594 |
model="gpt-4o",
|
595 |
messages=[
|
596 |
{
|