OrifjonKenjayev commited on
Commit
65f7231
·
verified ·
1 Parent(s): 3965156

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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!")