Hyeonseo commited on
Commit
801758e
1 Parent(s): 9ede116

revised: update preprocessing logic(remove license comment)

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,7 +7,9 @@ import re
7
  def translate(text_input, openapi_key):
8
  openai.api_key = openapi_key
9
 
10
- text_list = text_input.split('\n')[8:]
 
 
11
  print(text_list)
12
 
13
  reply = []
 
7
  def translate(text_input, openapi_key):
8
  openai.api_key = openapi_key
9
 
10
+ # 라이선스 문장 제거
11
+ rm_line = text_input.find('-->')
12
+ text_list = text_input[rm_line+4:].split('\n')
13
  print(text_list)
14
 
15
  reply = []