Spaces:
Runtime error
Runtime error
revised: update preprocessing logic(remove license comment)
Browse files
app.py
CHANGED
@@ -7,7 +7,9 @@ import re
|
|
7 |
def translate(text_input, openapi_key):
|
8 |
openai.api_key = openapi_key
|
9 |
|
10 |
-
|
|
|
|
|
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 = []
|