Spaces:
Running
Running
openhands openhands commited on
Commit ·
13e565b
1
Parent(s): f600f52
Fix Open Graph image URL format for Gradio file serving
Browse filesCo-authored-by: openhands <openhands@all-hands.dev>
app.py
CHANGED
|
@@ -40,16 +40,17 @@ 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 |
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
|
| 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
|
| 53 |
"""
|
| 54 |
|
| 55 |
# JavaScripts
|
|
|
|
| 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
|