Spaces:
Runtime error
Runtime error
Commit
·
48ec9ba
1
Parent(s):
395bcb5
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('./' + 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="./" + action.description + ".txt",
|
| 47 |
display="inline",
|
| 48 |
),
|
| 49 |
]
|