rogerxavier
commited on
Commit
•
523646c
1
Parent(s):
679ffd8
Update 3mergeDialogToVideo.py
Browse files- 3mergeDialogToVideo.py +1 -0
3mergeDialogToVideo.py
CHANGED
@@ -177,6 +177,7 @@ def gpt_polish(text:str)->"通过gpt润色str文案并返回str新文案,或者g
|
|
177 |
try:
|
178 |
|
179 |
response = requests.post('https://api.yingwu.lol/v1/chat/completions', headers=headers, data=json.dumps(data))
|
|
|
180 |
print("润色后文案是:"+response.json()['choices'][0]['message']['content'])
|
181 |
return response.json()['choices'][0]['message']['content']
|
182 |
except Exception as e:
|
|
|
177 |
try:
|
178 |
|
179 |
response = requests.post('https://api.yingwu.lol/v1/chat/completions', headers=headers, data=json.dumps(data))
|
180 |
+
print("gpt请求的结果是",response.text)
|
181 |
print("润色后文案是:"+response.json()['choices'][0]['message']['content'])
|
182 |
return response.json()['choices'][0]['message']['content']
|
183 |
except Exception as e:
|