Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
# Create a directory named 'uploads' if it doesn't exist
|
4 |
+
folder_name = "uploads"
|
5 |
+
os.makedirs(folder_name, exist_ok=True)
|
6 |
+
|
7 |
+
print(f"✅ Folder '{folder_name}' created successfully!")
|
8 |
+
|
9 |
+
# Save a test file inside the folder
|
10 |
+
with open(os.path.join(folder_name, "test.txt"), "w") as f:
|
11 |
+
f.write("Hello, Hugging Face!")
|
12 |
+
|
13 |
+
print("✅ Test file created inside the folder!")
|