Spaces:
Sleeping
Sleeping
Commit
·
7e3cef1
1
Parent(s):
b4bda1c
Update main.py
Browse files
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('
|
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="
|
47 |
display="inline",
|
48 |
),
|
49 |
]
|
|
|
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 |
]
|