ruinmin commited on
Commit
7a7a3a1
ยท
1 Parent(s): 92d103e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def get_text_file(text_docs):
36
  print(f"text_docs type: {type(text_docs)}, content: {text_docs.getvalue()}")
37
 
38
  # ๋ฐ”์ดํŠธ ๋ฐ์ดํ„ฐ๋ฅผ ์œ ๋‹ˆ์ฝ”๋“œ ์ด์Šค์ผ€์ดํ”„ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜
39
- text_content = text_docs.getvalue().decode("utf-8", "ignore").encode("unicode_escape").decode("utf-8")
40
 
41
  with open(temp_filepath, "w", encoding="utf-8") as f:
42
  f.write(text_content)
 
36
  print(f"text_docs type: {type(text_docs)}, content: {text_docs.getvalue()}")
37
 
38
  # ๋ฐ”์ดํŠธ ๋ฐ์ดํ„ฐ๋ฅผ ์œ ๋‹ˆ์ฝ”๋“œ ์ด์Šค์ผ€์ดํ”„ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜
39
+ text_content = text_docs.getvalue().decode("utf-8")
40
 
41
  with open(temp_filepath, "w", encoding="utf-8") as f:
42
  f.write(text_content)