Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def frames_to_story(base64Frames, prompt, api_key):
|
|
84 |
"messages": PROMPT_MESSAGES,
|
85 |
"api_key": api_key,
|
86 |
"headers": {"Openai-Version": "2020-11-07"},
|
87 |
-
"max_tokens":
|
88 |
}
|
89 |
result = openai.ChatCompletion.create(**params)
|
90 |
return result.choices[0].message.content
|
|
|
84 |
"messages": PROMPT_MESSAGES,
|
85 |
"api_key": api_key,
|
86 |
"headers": {"Openai-Version": "2020-11-07"},
|
87 |
+
"max_tokens": 4000,
|
88 |
}
|
89 |
result = openai.ChatCompletion.create(**params)
|
90 |
return result.choices[0].message.content
|