Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,8 @@ def translate_with_upload(text, file):
|
|
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 |
|
|
|
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 |
+
else:
|
58 |
+
text_input = ""
|
59 |
|
60 |
return translate(text_input, openapi_key)
|
61 |
|