Thback commited on
Commit
1e79c34
โ€ข
1 Parent(s): 66beb96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -25,10 +25,10 @@ def get_pdf_text(pdf_docs):
25
  # ๊ณผ์ œ
26
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
27
 
28
- def get_text_file(text_docs):
29
- def get_text_file(text_docs): # text ๋ฌธ์„œ์˜ ๋‚ด์šฉ์„ ๋ฐ”๋กœ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค.
30
  text_content = text_docs.getvalue().decode('utf-8')
31
- return [text_content] # ์ถ”์ถœํ•œ ํ…์ŠคํŠธ๋ฅผ ๋ฆฌ์ŠคํŠธ์— ๋‹ด์•„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค..
 
32
 
33
  def get_csv_file(csv_docs):
34
  temp_dir = tempfile.TemporaryDirectory() # ์ž„์‹œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
 
25
  # ๊ณผ์ œ
26
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
27
 
28
+ def get_text_file(text_docs): # text ๋ฌธ์„œ์˜ ๋‚ด์šฉ์„ ๋ฐ”๋กœ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค.
 
29
  text_content = text_docs.getvalue().decode('utf-8')
30
+ return [text_content] # ์ถ”์ถœํ•œ ํ…์ŠคํŠธ๋ฅผ ๋ฆฌ์ŠคํŠธ์— ๋‹ด์•„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
31
+
32
 
33
  def get_csv_file(csv_docs):
34
  temp_dir = tempfile.TemporaryDirectory() # ์ž„์‹œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.