dsaigc commited on
Commit
ffdb4a0
·
1 Parent(s): 8a0207d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -18,15 +18,7 @@ def trans_cn(user_message, model="gpt-3.5-turbo", max_tokens=4096):
18
  # 生成聊天回复
19
  response = openai.ChatCompletion.create(
20
  model= model,
21
- messages=[{"role": "system", "content":
22
- "Translate my input into English language please
23
- Here are some requests:
24
- 1, all sentences start with : a storyboard panel dpicting
25
- 2, Remember these key words correspondences, 远景:cinematic-scene-long_shot, 中景:cinematic-scene-mid_shot,近景:cinematic-scene-close_up_shot.
26
- 3,Remenber thes key words correspondences, 仰视:worm's eye view.
27
-
28
-
29
- "}] +
30
  [{"role": "user", "content": user_message}],
31
  # system 中 定义回答问题的具体类型等
32
  temperature=0.5,
 
18
  # 生成聊天回复
19
  response = openai.ChatCompletion.create(
20
  model= model,
21
+ messages=[{"role": "system", "content": "Translate my input into English language please Here are some requests: 1, all sentences start with : a storyboard panel dpicting.2, Remember these key words correspondences, 远景:cinematic-scene-long_shot, 中景:cinematic-scene-mid_shot,近景:cinematic-scene-close_up_shot.3,Remenber thes key words correspondences, 仰视:worm's eye view."}] +
 
 
 
 
 
 
 
 
22
  [{"role": "user", "content": user_message}],
23
  # system 中 定义回答问题的具体类型等
24
  temperature=0.5,