selfit-camera commited on
Commit
104b30d
·
1 Parent(s): ad7e66d
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -31,10 +31,10 @@ def t(key, lang="en"):
31
  # Configuration parameters
32
 
33
  TIP_TRY_N = 3 # Show like button tip after 12 tries
34
- FREE_TRY_N = 4 # Free phase: first 15 tries without restrictions
35
- SLOW_TRY_N = 6 # Slow phase start: 25 tries
36
- SLOW2_TRY_N = 10 # Slow phase start: 32 tries
37
- RATE_LIMIT_60 = 12 # Full restriction: blocked after 40 tries
38
 
39
  # Time window configuration (minutes)
40
  PHASE_1_WINDOW = 5 # 15-25 tries: 5 minutes
@@ -58,8 +58,8 @@ PRINT_STATS_INTERVAL = 10 # Print stats every N requests
58
  IP_Query_Results = {} # Track async query results
59
 
60
  # Restricted countries list (these countries have lower usage limits)
61
- RESTRICTED_COUNTRIES = ["印度", "巴基斯坦"]
62
- RESTRICTED_COUNTRY_LIMIT = 2 # Max usage for restricted countries
63
 
64
  country_dict = {
65
  "zh": ["中国", "香港"],
 
31
  # Configuration parameters
32
 
33
  TIP_TRY_N = 3 # Show like button tip after 12 tries
34
+ FREE_TRY_N = 5 # Free phase: first 15 tries without restrictions
35
+ SLOW_TRY_N = 8 # Slow phase start: 25 tries
36
+ SLOW2_TRY_N = 12 # Slow phase start: 32 tries
37
+ RATE_LIMIT_60 = 15 # Full restriction: blocked after 40 tries
38
 
39
  # Time window configuration (minutes)
40
  PHASE_1_WINDOW = 5 # 15-25 tries: 5 minutes
 
58
  IP_Query_Results = {} # Track async query results
59
 
60
  # Restricted countries list (these countries have lower usage limits)
61
+ RESTRICTED_COUNTRIES = ["印度", "巴基斯坦", "俄罗斯"]
62
+ RESTRICTED_COUNTRY_LIMIT = 1 # Max usage for restricted countries
63
 
64
  country_dict = {
65
  "zh": ["中国", "香港"],