Spaces:
Runtime error
Runtime error
Commit ·
b310708
1
Parent(s): f64d553
testing append mode
Browse files
app.py
CHANGED
|
@@ -19,6 +19,17 @@ from gptManager import ChatgptManager
|
|
| 19 |
pd.set_option('display.max_columns', None)
|
| 20 |
pd.set_option('display.max_rows', None)
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Filter out all warning messages
|
| 24 |
warnings.filterwarnings("ignore")
|
|
|
|
| 19 |
pd.set_option('display.max_columns', None)
|
| 20 |
pd.set_option('display.max_rows', None)
|
| 21 |
|
| 22 |
+
# Create a new file
|
| 23 |
+
with open(os.path.join(data_dir, "my_data.txt"), "a") as f:
|
| 24 |
+
f.write("Hello World! From pesistent storage line 2")
|
| 25 |
+
|
| 26 |
+
# Read the data from the file
|
| 27 |
+
with open(os.path.join(data_dir, "my_data.txt"), "r") as f:
|
| 28 |
+
data = f.read()
|
| 29 |
+
# Print the data
|
| 30 |
+
print(data)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
|
| 34 |
# Filter out all warning messages
|
| 35 |
warnings.filterwarnings("ignore")
|