diwash-barla commited on
Commit
c072549
·
1 Parent(s): 9667e74

Fix database permission error by using a dedicated data folder

Browse files
Files changed (2) hide show
  1. .gitignore +46 -27
  2. Dockerfile +1 -1
.gitignore CHANGED
@@ -1,47 +1,66 @@
1
- # ===============================
2
- # Sparkling Gyan - Git Ignore Setup
3
- # ===============================
 
4
 
5
- # Environment and secrets
6
  .env
7
- *.env
8
  api_keys.json
 
 
9
 
10
- # Python cache and build files
 
 
 
 
 
 
11
  __pycache__/
 
 
12
  *.pyc
13
  *.pyo
14
  *.pyd
15
  *.log
16
- *.sqlite3
17
- *.db
18
 
19
- # Virtual environment folders
20
  venv/
 
21
  .venv/
 
 
22
 
23
- # Output & Upload directories (video, audio, temp data)
24
- uploads/
25
- outputs/
26
- downloads/
27
- temp/
28
- cache/
29
- *.mp4
30
- *.wav
31
- *.mp3
32
- *.json
33
 
34
- # System or IDE specific files
35
  .DS_Store
36
  Thumbs.db
37
- .vscode/
38
- .idea/
39
 
40
- # Hugging Face / Gradio cache folders
41
- __huggingface__/
42
- gradio_cached_examples/
 
 
 
 
 
 
 
 
 
43
 
44
- # Temporary backup files
45
  *.bak
46
- *.swp
47
  *.tmp
 
 
 
 
 
 
 
 
1
+ # ==========================================
2
+ # 🔒 Hugging Face Safe .gitignore
3
+ # For Python, Flask, Termux & Deployment
4
+ # ==========================================
5
 
6
+ # --- Sensitive Files ---
7
  .env
 
8
  api_keys.json
9
+ config.json
10
+ secrets.json
11
 
12
+ # --- Output / Uploads ---
13
+ uploads/
14
+ outputs/
15
+ generated/
16
+ cache/
17
+ temp/
18
+ tmp/
19
  __pycache__/
20
+
21
+ # --- Python Bytecode ---
22
  *.pyc
23
  *.pyo
24
  *.pyd
25
  *.log
 
 
26
 
27
+ # --- Virtual Environments ---
28
  venv/
29
+ .env/
30
  .venv/
31
+ env/
32
+ ENV/
33
 
34
+ # --- Editor / IDE Configs ---
35
+ .vscode/
36
+ .idea/
37
+ *.swp
38
+ *.swo
 
 
 
 
 
39
 
40
+ # --- OS Specific ---
41
  .DS_Store
42
  Thumbs.db
 
 
43
 
44
+ # --- Jupyter / Notebooks ---
45
+ .ipynb_checkpoints/
46
+
47
+ # --- Hugging Face Specific ---
48
+ .gitignore
49
+ *.ckpt
50
+ *.weights
51
+ *.bin
52
+ *.pt
53
+ *.h5
54
+ *.onnx
55
+ *.tflite
56
 
57
+ # --- Backup Files ---
58
  *.bak
 
59
  *.tmp
60
+ *.old
61
+
62
+ # --- Large Media (Optional) ---
63
+ videos/
64
+ audios/
65
+ images/
66
+ models/
Dockerfile CHANGED
@@ -22,4 +22,4 @@ COPY . /code/
22
  EXPOSE 7860
23
 
24
  # Gunicorn सर्वर चलाएँ
25
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app:app"]
 
22
  EXPOSE 7860
23
 
24
  # Gunicorn सर्वर चलाएँ
25
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "1200", "app:app"]