kms commited on
Commit
df46b32
โ€ข
1 Parent(s): 4398562
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -43,10 +43,7 @@ def get_csv_file(csv_docs):
43
  f.write(csv_docs.getvalue())
44
  csv_loader = CSVLoader(temp_filepath)
45
  csv_docs = csv_loader.load()
46
- text = ""
47
- for row in csv_docs:
48
- text += " ".join(str(item) for item in row) + "\n"
49
- return text
50
 
51
  # json ํŒŒ์ผ๋กœ๋ถ€ํ„ฐ ํ…์ŠคํŠธ๋ฅผ ์ถ”์ถœํ•˜๋Š” ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
52
  def get_json_file(json_docs):
 
43
  f.write(csv_docs.getvalue())
44
  csv_loader = CSVLoader(temp_filepath)
45
  csv_docs = csv_loader.load()
46
+ return csv_docs
 
 
 
47
 
48
  # json ํŒŒ์ผ๋กœ๋ถ€ํ„ฐ ํ…์ŠคํŠธ๋ฅผ ์ถ”์ถœํ•˜๋Š” ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
49
  def get_json_file(json_docs):