se0kcess commited on
Commit
e2156e5
โ€ข
1 Parent(s): 8e40ce2
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,6 +24,7 @@ def get_pdf_text(pdf_docs):
24
 
25
  # ๊ณผ์ œ
26
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
 
27
  def get_text_file(txt_docs):
28
  temp_dir = tempfile.TemporaryDirectory()
29
  temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
@@ -36,7 +37,6 @@ def get_text_file(txt_docs):
36
 
37
  return text_data
38
 
39
- # CSV ํŒŒ์ผ๋กœ๋ถ€ํ„ฐ ํ…์ŠคํŠธ๋ฅผ ์ถ”์ถœํ•˜๋Š” ํ•จ์ˆ˜
40
  def get_csv_file(csv_docs):
41
  temp_dir = tempfile.TemporaryDirectory()
42
  temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
@@ -49,7 +49,6 @@ def get_csv_file(csv_docs):
49
 
50
  return csv_data
51
 
52
- # JSON ํŒŒ์ผ๋กœ๋ถ€ํ„ฐ ํ…์ŠคํŠธ๋ฅผ ์ถ”์ถœํ•˜๋Š” ํ•จ์ˆ˜
53
  def get_json_file(json_docs):
54
  temp_dir = tempfile.TemporaryDirectory()
55
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
 
24
 
25
  # ๊ณผ์ œ
26
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
27
+
28
  def get_text_file(txt_docs):
29
  temp_dir = tempfile.TemporaryDirectory()
30
  temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
 
37
 
38
  return text_data
39
 
 
40
  def get_csv_file(csv_docs):
41
  temp_dir = tempfile.TemporaryDirectory()
42
  temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
 
49
 
50
  return csv_data
51
 
 
52
  def get_json_file(json_docs):
53
  temp_dir = tempfile.TemporaryDirectory()
54
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)