openhands openhands commited on
Commit
0658c19
·
1 Parent(s): 94c34ad

Remove OG meta tags - handled by proxy

Browse files

Open Graph meta tags are now injected by the Cloud Run proxy
(All-Hands-AI/infra#886) which also removes Gradio's default
tags that were causing social media previews to show 'Gradio'
instead of 'OpenHands Index'.

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

Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -39,18 +39,6 @@ logger.info(f"All modules imported (LOCAL_DEBUG={LOCAL_DEBUG})")
39
 
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
56
  scroll_script = """
@@ -260,7 +248,7 @@ logger.info("Creating Gradio application")
260
  demo = gr.Blocks(
261
  theme=theme,
262
  css=final_css,
263
- head=og_meta_tags + scroll_script + redirect_script + tooltip_script,
264
  title="OpenHands Index",
265
  )
266
 
 
39
 
40
  api = HfApi()
41
  LOGO_PATH = "assets/logo.svg"
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  # JavaScripts
44
  scroll_script = """
 
248
  demo = gr.Blocks(
249
  theme=theme,
250
  css=final_css,
251
+ head=scroll_script + redirect_script + tooltip_script,
252
  title="OpenHands Index",
253
  )
254