Hyeonseo commited on
Commit
c00d819
β€’
1 Parent(s): 5fa1a6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -8,6 +8,7 @@ def translate(text_input, openapi_key):
8
  openai.api_key = openapi_key
9
 
10
  text_list = text_input.split('\n')[8:]
 
11
 
12
  reply = []
13
 
@@ -53,9 +54,6 @@ def translate_with_upload(text, file):
53
  # ν…μŠ€νŠΈμ—μ„œ 빈 쀄을 μ œκ±°ν•©λ‹ˆλ‹€.
54
  text_input = re.sub(r'^\n', '', text_input, flags=re.MULTILINE)
55
  text_input = re.sub(r'\n\n+', '\n\n', text_input)
56
- else:
57
- # 파일이 μ—…λ‘œλ“œλ˜μ§€ μ•Šμ€ 경우, 빈 λ¬Έμžμ—΄λ‘œ μ΄ˆκΈ°ν™”ν•©λ‹ˆλ‹€.
58
- text_input = ""
59
 
60
  return translate(text_input, openapi_key)
61
 
 
8
  openai.api_key = openapi_key
9
 
10
  text_list = text_input.split('\n')[8:]
11
+ print(text_list)
12
 
13
  reply = []
14
 
 
54
  # ν…μŠ€νŠΈμ—μ„œ 빈 쀄을 μ œκ±°ν•©λ‹ˆλ‹€.
55
  text_input = re.sub(r'^\n', '', text_input, flags=re.MULTILINE)
56
  text_input = re.sub(r'\n\n+', '\n\n', text_input)
 
 
 
57
 
58
  return translate(text_input, openapi_key)
59