aichina commited on
Commit
e5a1d61
1 Parent(s): 700e0be
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def convert(res,openai_key):
80
  txt_line_content = '\n'.join(txt_line)
81
  prompt = f"\n\n将下面的内容使用简体中文总结5条要点出来:\n\n{txt_line_content}"
82
  open_ai_res = create(prompt,openai_key)
83
- answer += prompt + '\n GPT3:\n' + open_ai_res['choices'][0]['text']
84
  except Exception as e:
85
  print('open ai api error',e)
86
 
 
80
  txt_line_content = '\n'.join(txt_line)
81
  prompt = f"\n\n将下面的内容使用简体中文总结5条要点出来:\n\n{txt_line_content}"
82
  open_ai_res = create(prompt,openai_key)
83
+ answer += prompt + '\n GPT3:\n' + open_ai_res['choices'][0]['text'].strip()
84
  except Exception as e:
85
  print('open ai api error',e)
86