selfit-camera commited on
Commit
5a82f03
·
1 Parent(s): 54026b7
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -9,14 +9,14 @@ from nfsw import NSFWDetector
9
 
10
  # Configuration parameters
11
 
12
- TIP_TRY_N = 8 # Show like button tip after 12 tries
13
- FREE_TRY_N = 20 # Free phase: first 15 tries without restrictions
14
- SLOW_TRY_N = 25 # Slow phase start: 25 tries
15
- SLOW2_TRY_N = 32 # Slow phase start: 32 tries
16
- RATE_LIMIT_60 = 40 # Full restriction: blocked after 40 tries
17
 
18
  # Time window configuration (minutes)
19
- PHASE_1_WINDOW = 5 # 15-25 tries: 5 minutes
20
  PHASE_2_WINDOW = 10 # 25-32 tries: 10 minutes
21
  PHASE_3_WINDOW = 20 # 32-40 tries: 20 minutes
22
  MAX_IMAGES_PER_WINDOW = 2 # Max images per time window
@@ -815,7 +815,7 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
815
  max-width: 400px;
816
  box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);
817
  border: none;
818
- '>👉 Please consider clicking the ❤️ Like button to support this space!</div>
819
  </div>
820
  """
821
 
 
9
 
10
  # Configuration parameters
11
 
12
+ TIP_TRY_N = 5 # Show like button tip after 12 tries
13
+ FREE_TRY_N = 8 # Free phase: first 15 tries without restrictions
14
+ SLOW_TRY_N = 20 # Slow phase start: 25 tries
15
+ SLOW2_TRY_N = 28 # Slow phase start: 32 tries
16
+ RATE_LIMIT_60 = 35 # Full restriction: blocked after 40 tries
17
 
18
  # Time window configuration (minutes)
19
+ PHASE_1_WINDOW = 2 # 15-25 tries: 5 minutes
20
  PHASE_2_WINDOW = 10 # 25-32 tries: 10 minutes
21
  PHASE_3_WINDOW = 20 # 32-40 tries: 20 minutes
22
  MAX_IMAGES_PER_WINDOW = 2 # Max images per time window
 
815
  max-width: 400px;
816
  box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);
817
  border: none;
818
+ '>👉 Click the ❤️ Like button to unlock more free trial attempts!</div>
819
  </div>
820
  """
821