Spaces:
Sleeping
Sleeping
Stardragon2099
commited on
Commit
·
087d705
1
Parent(s):
6e5e0b9
ported to chatgpt api
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def predict(img, prompt):
|
|
78 |
|
79 |
# Make API call
|
80 |
try:
|
81 |
-
response = openai.
|
82 |
model="gpt-4",
|
83 |
messages=messages
|
84 |
)
|
|
|
78 |
|
79 |
# Make API call
|
80 |
try:
|
81 |
+
response = openai.Chat.create(
|
82 |
model="gpt-4",
|
83 |
messages=messages
|
84 |
)
|