Ludovicollin commited on
Commit
6b04de2
·
1 Parent(s): 8c84485

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -38,12 +38,12 @@ async def on_action(action):
38
  content.append(action.value)
39
  arrayContent = np.array(content)
40
  df = pd.DataFrame(arrayContent)
41
- with open('./.chainlit/' + action.description + '.txt', 'wb') as csv_file:
42
  df.to_csv(path_or_buf=csv_file, index=False,header=False, encoding='utf-8')
43
  elements = [
44
  cl.File(
45
  name= action.description + ".txt",
46
- path="./.chainlit/" + action.description + ".txt",
47
  display="inline",
48
  ),
49
  ]
 
38
  content.append(action.value)
39
  arrayContent = np.array(content)
40
  df = pd.DataFrame(arrayContent)
41
+ with open('./app/' + action.description + '.txt', 'wb') as csv_file:
42
  df.to_csv(path_or_buf=csv_file, index=False,header=False, encoding='utf-8')
43
  elements = [
44
  cl.File(
45
  name= action.description + ".txt",
46
+ path="./app/" + action.description + ".txt",
47
  display="inline",
48
  ),
49
  ]