selfitcamera commited on
Commit
8ea7daf
Β·
1 Parent(s): bc231db
__lib__/app.py CHANGED
@@ -815,12 +815,25 @@ def edit_image_interface(input_image, prompt, lang, request: gr.Request, progres
815
  """
816
  else:
817
  # For non-restricted countries, show action buttons
 
 
 
 
 
 
 
 
 
 
 
 
 
818
  if task_uuid and lang not in ["zh", "hi", "ru"]:
819
  # Create i2v URL with input and output images and prompt
820
  from urllib.parse import quote
821
  encoded_prompt = quote(prompt.strip())
822
  i2v_url = f"https://omnicreator.net/image-to-video?input_image={input_image_url}&end_image={result_url}&prompt={encoded_prompt}"
823
- action_buttons_html = f"""
824
  <div style='display: flex; justify-content: center; gap: 12px; margin: 10px 0 5px 0; padding: 0px;'>
825
  <a href='{i2v_url}' target='_blank' style='
826
  display: inline-flex;
@@ -864,19 +877,6 @@ def edit_image_interface(input_image, prompt, lang, request: gr.Request, progres
864
  </div>
865
  """
866
 
867
- # Always show HF Space demo tip under the result image after task completion
868
- action_buttons_html += """
869
- <div style='margin: 16px auto 0; max-width: 700px; background: linear-gradient(120deg, #f0f4ff 0%, #e5edff 50%, #f7fbff 100%); border: 1px solid #cbd5ff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 28px rgba(88, 101, 242, 0.18); text-align: center;'>
870
- <div style='font-size: 16px; font-weight: 900; color: #1f2a44; display: flex; align-items: center; justify-content: center; gap: 8px;'>
871
- πŸš€ Omni Image Editor 2.0 is live!
872
- </div>
873
- <a href='https://huggingface.co/spaces/selfit-camera/Omni-Image-Editor' target='_blank' style='display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 10px 18px; background: #5865f2; color: white; border-radius: 10px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);'>
874
- Try the Hugging Face Space demo (free)
875
- </a>
876
- <div style='font-size: 13px; color: #4a5568; margin-top: 6px; font-weight: 700;'>This is a free HF Space demo for Omni Image Editor 2.0.</div>
877
- </div>
878
- """
879
-
880
  return final_result, final_message, gr.update(value=action_buttons_html, visible=True)
881
  else:
882
  print(f"❌ Processing failed - IP: {client_ip}, error: {message}", flush=True)
@@ -1031,7 +1031,7 @@ def create_app():
1031
  onmouseout="this.style.borderBottom='1px solid rgba(255,255,255,0.5)'">
1032
  Omni Image Editor 2.0
1033
  </a>
1034
- is Online Now ! More free trials, better quality, more features!
1035
  </span>
1036
  </div>
1037
  """, visible=True)
 
815
  """
816
  else:
817
  # For non-restricted countries, show action buttons
818
+ # Start with HF Space promo block so CTA is prominent above other actions
819
+ action_buttons_html = """
820
+ <div style='margin: 16px auto 0; max-width: 700px; background: linear-gradient(120deg, #f0f4ff 0%, #e5edff 50%, #f7fbff 100%); border: 1px solid #cbd5ff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 28px rgba(88, 101, 242, 0.18); text-align: center;'>
821
+ <div style='font-size: 16px; font-weight: 900; color: #1f2a44; display: flex; align-items: center; justify-content: center; gap: 8px;'>
822
+ πŸš€ Omni Image Editor 2.0 is live!
823
+ </div>
824
+ <a href='https://huggingface.co/spaces/selfit-camera/Omni-Image-Editor' target='_blank' style='display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 10px 18px; background: #5865f2; color: white; border-radius: 10px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);'>
825
+ Try the Hugging Face Space demo (free)
826
+ </a>
827
+ <div style='font-size: 13px; color: #4a5568; margin-top: 6px; font-weight: 700;'>This is a free HF Space demo for Omni Image Editor 2.0.</div>
828
+ </div>
829
+ """
830
+
831
  if task_uuid and lang not in ["zh", "hi", "ru"]:
832
  # Create i2v URL with input and output images and prompt
833
  from urllib.parse import quote
834
  encoded_prompt = quote(prompt.strip())
835
  i2v_url = f"https://omnicreator.net/image-to-video?input_image={input_image_url}&end_image={result_url}&prompt={encoded_prompt}"
836
+ action_buttons_html += f"""
837
  <div style='display: flex; justify-content: center; gap: 12px; margin: 10px 0 5px 0; padding: 0px;'>
838
  <a href='{i2v_url}' target='_blank' style='
839
  display: inline-flex;
 
877
  </div>
878
  """
879
 
 
 
 
 
 
 
 
 
 
 
 
 
 
880
  return final_result, final_message, gr.update(value=action_buttons_html, visible=True)
881
  else:
882
  print(f"❌ Processing failed - IP: {client_ip}, error: {message}", flush=True)
 
1031
  onmouseout="this.style.borderBottom='1px solid rgba(255,255,255,0.5)'">
1032
  Omni Image Editor 2.0
1033
  </a>
1034
+ is Online Now ! More free trials, better quality!
1035
  </span>
1036
  </div>
1037
  """, visible=True)
__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