selfitcamera commited on
Commit
f51c617
·
1 Parent(s): 397c271
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
__lib__/app.py CHANGED
@@ -33,18 +33,18 @@ def t(key, lang="en"):
33
 
34
  # Configuration parameters
35
  # a = b
36
- TIP_TRY_N = 3 # Show like button tip after 12 tries
37
- FREE_TRY_N = 6 # Free phase: first 15 tries without restrictions
38
- SLOW_TRY_N = 10 # Slow phase start: 25 tries
39
- SLOW2_TRY_N = 14 # Slow phase start: 32 tries
40
- RATE_LIMIT_60 = 16 # Full restriction: blocked after 40 tries
41
 
42
  # Time window configuration (minutes)
43
- PHASE_1_WINDOW = 5 # 15-25 tries: 5 minutes
44
- PHASE_2_WINDOW = 10 # 25-32 tries: 10 minutes
45
  PHASE_3_WINDOW = 20 # 32-40 tries: 20 minutes
46
  MAX_IMAGES_PER_WINDOW = 2 # Max images per time window
47
- high_priority_n = 2 # 每个ip只有第一个任务是高优先级的
48
 
49
  IP_Dict = {}
50
  # IP generation statistics and time window tracking
@@ -1019,7 +1019,7 @@ def create_app():
1019
  ">
1020
  <span style="color: white; font-weight: 600; font-size: 1.0em;">
1021
  🎉 NEW:
1022
- <a href="https://huggingface.co/spaces/Selfit/Multi-Image-Edit" target="_blank" style="
1023
  color: white;
1024
  text-decoration: none;
1025
  border-bottom: 1px solid rgba(255,255,255,0.5);
@@ -1027,19 +1027,9 @@ def create_app():
1027
  margin: 0 8px;
1028
  " onmouseover="this.style.borderBottom='1px solid white'"
1029
  onmouseout="this.style.borderBottom='1px solid rgba(255,255,255,0.5)'">
1030
- Multi-Image-Edit
1031
- </a>
1032
- |
1033
- <a href="https://huggingface.co/spaces/Selfit/Text-to-Image-Pro" target="_blank" style="
1034
- color: white;
1035
- text-decoration: none;
1036
- border-bottom: 1px solid rgba(255,255,255,0.5);
1037
- transition: all 0.3s ease;
1038
- margin: 0 8px;
1039
- " onmouseover="this.style.borderBottom='1px solid white'"
1040
- onmouseout="this.style.borderBottom='1px solid rgba(255,255,255,0.5)'">
1041
- Text-to-Image
1042
  </a>
 
1043
  </span>
1044
  </div>
1045
  """, visible=True)
@@ -1047,27 +1037,7 @@ def create_app():
1047
  with gr.Column(scale=0, min_width=160, elem_classes=["banner-lang-selector"]):
1048
  lang_dropdown = gr.Dropdown(
1049
  choices=[
1050
- ("English", "en"),
1051
- ("हिंदी", "hi"),
1052
- ("中文", "zh"),
1053
- ("Suomi", "fi"),
1054
- ("Español", "es"),
1055
- ("Português", "pt"),
1056
- ("Français", "fr"),
1057
- ("Deutsch", "de"),
1058
- ("Italiano", "it"),
1059
- ("日本語", "ja"),
1060
- ("Русский", "ru"),
1061
- ("Українська", "uk"),
1062
- ("العربية", "ar"),
1063
- ("Nederlands", "nl"),
1064
- ("Norsk", "no"),
1065
- ("Svenska", "sv"),
1066
- ("Indonesian", "id"),
1067
- ("Tiếng Việt", "vi"),
1068
- ("עברית", "he"),
1069
- ("Türkçe", "tr"),
1070
- ("Dansk", "da")
1071
  ],
1072
  value="en",
1073
  label="🌐",
 
33
 
34
  # Configuration parameters
35
  # a = b
36
+ TIP_TRY_N = 1 # Show like button tip after 12 tries
37
+ FREE_TRY_N = 3 # Free phase: first 15 tries without restrictions
38
+ SLOW_TRY_N = 6 # Slow phase start: 25 tries
39
+ SLOW2_TRY_N = 10 # Slow phase start: 32 tries
40
+ RATE_LIMIT_60 = 12 # Full restriction: blocked after 40 tries
41
 
42
  # Time window configuration (minutes)
43
+ PHASE_1_WINDOW = 6 # 15-25 tries: 5 minutes
44
+ PHASE_2_WINDOW = 13 # 25-32 tries: 10 minutes
45
  PHASE_3_WINDOW = 20 # 32-40 tries: 20 minutes
46
  MAX_IMAGES_PER_WINDOW = 2 # Max images per time window
47
+ high_priority_n = 1 # 每个ip只有第一个任务是高优先级的
48
 
49
  IP_Dict = {}
50
  # IP generation statistics and time window tracking
 
1019
  ">
1020
  <span style="color: white; font-weight: 600; font-size: 1.0em;">
1021
  🎉 NEW:
1022
+ <a href="https://huggingface.co/spaces/selfit-camera/Omni-Image-Editor" target="_blank" style="
1023
  color: white;
1024
  text-decoration: none;
1025
  border-bottom: 1px solid rgba(255,255,255,0.5);
 
1027
  margin: 0 8px;
1028
  " onmouseover="this.style.borderBottom='1px solid white'"
1029
  onmouseout="this.style.borderBottom='1px solid rgba(255,255,255,0.5)'">
1030
+ Omni Image Editor 2.0
 
 
 
 
 
 
 
 
 
 
 
1031
  </a>
1032
+ is Online Now ! More free trials, better quality, more features!
1033
  </span>
1034
  </div>
1035
  """, visible=True)
 
1037
  with gr.Column(scale=0, min_width=160, elem_classes=["banner-lang-selector"]):
1038
  lang_dropdown = gr.Dropdown(
1039
  choices=[
1040
+ ("English", "en")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1041
  ],
1042
  value="en",
1043
  label="🌐",
__lib__/i18n/ar.pyc CHANGED
Binary files a/__lib__/i18n/ar.pyc and b/__lib__/i18n/ar.pyc differ
 
__lib__/i18n/da.pyc CHANGED
Binary files a/__lib__/i18n/da.pyc and b/__lib__/i18n/da.pyc differ
 
__lib__/i18n/de.pyc CHANGED
Binary files a/__lib__/i18n/de.pyc and b/__lib__/i18n/de.pyc differ
 
__lib__/i18n/en.pyc CHANGED
Binary files a/__lib__/i18n/en.pyc and b/__lib__/i18n/en.pyc differ
 
__lib__/i18n/es.pyc CHANGED
Binary files a/__lib__/i18n/es.pyc and b/__lib__/i18n/es.pyc differ
 
__lib__/i18n/fi.pyc CHANGED
Binary files a/__lib__/i18n/fi.pyc and b/__lib__/i18n/fi.pyc differ
 
__lib__/i18n/fr.pyc CHANGED
Binary files a/__lib__/i18n/fr.pyc and b/__lib__/i18n/fr.pyc differ
 
__lib__/i18n/he.pyc CHANGED
Binary files a/__lib__/i18n/he.pyc and b/__lib__/i18n/he.pyc differ
 
__lib__/i18n/hi.pyc CHANGED
Binary files a/__lib__/i18n/hi.pyc and b/__lib__/i18n/hi.pyc differ
 
__lib__/i18n/id.pyc CHANGED
Binary files a/__lib__/i18n/id.pyc and b/__lib__/i18n/id.pyc differ
 
__lib__/i18n/it.pyc CHANGED
Binary files a/__lib__/i18n/it.pyc and b/__lib__/i18n/it.pyc differ
 
__lib__/i18n/ja.pyc CHANGED
Binary files a/__lib__/i18n/ja.pyc and b/__lib__/i18n/ja.pyc differ
 
__lib__/i18n/nl.pyc CHANGED
Binary files a/__lib__/i18n/nl.pyc and b/__lib__/i18n/nl.pyc differ
 
__lib__/i18n/no.pyc CHANGED
Binary files a/__lib__/i18n/no.pyc and b/__lib__/i18n/no.pyc differ
 
__lib__/i18n/pt.pyc CHANGED
Binary files a/__lib__/i18n/pt.pyc and b/__lib__/i18n/pt.pyc differ
 
__lib__/i18n/ru.pyc CHANGED
Binary files a/__lib__/i18n/ru.pyc and b/__lib__/i18n/ru.pyc differ
 
__lib__/i18n/sv.pyc CHANGED
Binary files a/__lib__/i18n/sv.pyc and b/__lib__/i18n/sv.pyc differ
 
__lib__/i18n/tr.pyc CHANGED
Binary files a/__lib__/i18n/tr.pyc and b/__lib__/i18n/tr.pyc differ
 
__lib__/i18n/uk.pyc CHANGED
Binary files a/__lib__/i18n/uk.pyc and b/__lib__/i18n/uk.pyc differ
 
__lib__/i18n/vi.pyc CHANGED
Binary files a/__lib__/i18n/vi.pyc and b/__lib__/i18n/vi.pyc differ
 
__lib__/i18n/zh.pyc CHANGED
Binary files a/__lib__/i18n/zh.pyc and b/__lib__/i18n/zh.pyc differ
 
__lib__/nfsw.pyc CHANGED
Binary files a/__lib__/nfsw.pyc and b/__lib__/nfsw.pyc differ
 
__lib__/pipeline.pyc CHANGED
Binary files a/__lib__/pipeline.pyc and b/__lib__/pipeline.pyc differ
 
__lib__/util.pyc CHANGED
Binary files a/__lib__/util.pyc and b/__lib__/util.pyc differ