openhands openhands commited on
Commit
4c523d5
·
1 Parent(s): 13e565b

Add static preview image for Open Graph social sharing

Browse files

- Resized to 1200x735 and converted to JPEG for smaller file size (52KB)

Co-authored-by: openhands <openhands@all-hands.dev>

Files changed (2) hide show
  1. app.py +2 -3
  2. assets/openhands-index-preview.jpg +0 -0
app.py CHANGED
@@ -40,17 +40,16 @@ logger.info(f"All modules imported (LOCAL_DEBUG={LOCAL_DEBUG})")
40
  api = HfApi()
41
  LOGO_PATH = "assets/logo.svg"
42
  # Open Graph / Social Media Preview Meta Tags
43
- # Using the OpenHands logo served via Gradio's file endpoint
44
  og_meta_tags = """
45
  <meta property="og:title" content="OpenHands Index" />
46
  <meta property="og:description" content="A Holistic Benchmark for Software Engineering" />
47
- <meta property="og:image" content="https://index.openhands.dev/file/assets/openhands_logo_color_forwhite.png" />
48
  <meta property="og:url" content="https://index.openhands.dev" />
49
  <meta property="og:type" content="website" />
50
  <meta name="twitter:card" content="summary_large_image" />
51
  <meta name="twitter:title" content="OpenHands Index" />
52
  <meta name="twitter:description" content="A Holistic Benchmark for Software Engineering" />
53
- <meta name="twitter:image" content="https://index.openhands.dev/file/assets/openhands_logo_color_forwhite.png" />
54
  """
55
 
56
  # JavaScripts
 
40
  api = HfApi()
41
  LOGO_PATH = "assets/logo.svg"
42
  # Open Graph / Social Media Preview Meta Tags
 
43
  og_meta_tags = """
44
  <meta property="og:title" content="OpenHands Index" />
45
  <meta property="og:description" content="A Holistic Benchmark for Software Engineering" />
46
+ <meta property="og:image" content="https://index.openhands.dev/file/assets/openhands-index-preview.jpg" />
47
  <meta property="og:url" content="https://index.openhands.dev" />
48
  <meta property="og:type" content="website" />
49
  <meta name="twitter:card" content="summary_large_image" />
50
  <meta name="twitter:title" content="OpenHands Index" />
51
  <meta name="twitter:description" content="A Holistic Benchmark for Software Engineering" />
52
+ <meta name="twitter:image" content="https://index.openhands.dev/file/assets/openhands-index-preview.jpg" />
53
  """
54
 
55
  # JavaScripts
assets/openhands-index-preview.jpg ADDED