Spaces:
Sleeping
Sleeping
Update bag.py
Browse files
bag.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
|
| 4 |
BASE_URL = "https://build-small-hackathon-overthinker.hf.space"
|
| 5 |
VIDEO_URL = "https://huggingface.co/spaces/build-small-hackathon/OverThinker/resolve/main/video_1.mp4"
|
| 6 |
-
|
| 7 |
# --- LLMs.txt ---
|
| 8 |
LLMS_TXT = """# Overthinker: AI-Powered Decision Tree Explorer (WIP)
|
| 9 |
|
|
@@ -247,12 +247,34 @@ OVERSEER_JSON = f"""{{
|
|
| 247 |
|
| 248 |
# --- Video Page HTML (placeholder for your video URL) ---
|
| 249 |
# Replace PLACEHOLDER_VIDEO_URL with your actual video link
|
| 250 |
-
VIDEO_PAGE_HTML = """<!DOCTYPE html>
|
| 251 |
<html lang="en">
|
| 252 |
<head>
|
| 253 |
<meta charset="UTF-8">
|
| 254 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 255 |
<title>Overthinker Demo Video</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
<style>
|
| 257 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 258 |
body {
|
|
@@ -300,7 +322,7 @@ VIDEO_PAGE_HTML = """<!DOCTYPE html>
|
|
| 300 |
<body>
|
| 301 |
<h1>Overthinker Demo</h1>
|
| 302 |
<div class="video-container">
|
| 303 |
-
<video controls poster="
|
| 304 |
<source src="{VIDEO_URL}" type="video/mp4">
|
| 305 |
Your browser does not support the video tag.
|
| 306 |
</video>
|
|
|
|
| 3 |
|
| 4 |
BASE_URL = "https://build-small-hackathon-overthinker.hf.space"
|
| 5 |
VIDEO_URL = "https://huggingface.co/spaces/build-small-hackathon/OverThinker/resolve/main/video_1.mp4"
|
| 6 |
+
VIDEO_CARD = "https://cdn-uploads.huggingface.co/production/uploads/677e884129c1f2af708eb07b/et2f8YT0mUp1DipL8LL-U.jpeg"
|
| 7 |
# --- LLMs.txt ---
|
| 8 |
LLMS_TXT = """# Overthinker: AI-Powered Decision Tree Explorer (WIP)
|
| 9 |
|
|
|
|
| 247 |
|
| 248 |
# --- Video Page HTML (placeholder for your video URL) ---
|
| 249 |
# Replace PLACEHOLDER_VIDEO_URL with your actual video link
|
| 250 |
+
VIDEO_PAGE_HTML = f"""<!DOCTYPE html>
|
| 251 |
<html lang="en">
|
| 252 |
<head>
|
| 253 |
<meta charset="UTF-8">
|
| 254 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 255 |
<title>Overthinker Demo Video</title>
|
| 256 |
+
<!-- Basic Page Meta -->
|
| 257 |
+
<meta property="og:title" content="OverThinker Demo" />
|
| 258 |
+
<meta property="og:description" content="AI Powered Decision Tree" />
|
| 259 |
+
<meta property="og:image" content="{VIDEO_CARD}" />
|
| 260 |
+
<meta property="og:url" content="{BASE_URL}/video" />
|
| 261 |
+
|
| 262 |
+
<!-- Video-Specific Open Graph Tags -->
|
| 263 |
+
<meta property="og:video" content="{VIDEO_URL}" />
|
| 264 |
+
<meta property="og:video:secure_url" content="{VIDEO_URL}" />
|
| 265 |
+
<meta property="og:video:type" content="video/mp4" />
|
| 266 |
+
<meta property="og:video:width" content="1280" />
|
| 267 |
+
<meta property="og:video:height" content="720" />
|
| 268 |
+
|
| 269 |
+
<meta name="twitter:card" content="player" />
|
| 270 |
+
<meta name="twitter:title" content="OverThinker Demo" />
|
| 271 |
+
<meta name="twitter:description" content="AI Powered Decision Tree" />
|
| 272 |
+
<meta name="twitter:image" content="{VIDEO_CARD}" />
|
| 273 |
+
<meta name="twitter:player" content="{VIDEO_URL}" />
|
| 274 |
+
<meta name="twitter:player:width" content="1280" />
|
| 275 |
+
<meta name="twitter:player:height" content="720" />
|
| 276 |
+
|
| 277 |
+
""" + """
|
| 278 |
<style>
|
| 279 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 280 |
body {
|
|
|
|
| 322 |
<body>
|
| 323 |
<h1>Overthinker Demo</h1>
|
| 324 |
<div class="video-container">
|
| 325 |
+
<video controls poster="{VIDEO_CARD}">
|
| 326 |
<source src="{VIDEO_URL}" type="video/mp4">
|
| 327 |
Your browser does not support the video tag.
|
| 328 |
</video>
|