burtenshaw HF Staff commited on
Commit
1f3a178
Β·
verified Β·
1 Parent(s): a81f515

Initial: agent loop animation

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +9 -3
  3. agent-loop.mp4 +3 -0
  4. index.html +26 -17
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ agent-loop.mp4 filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,10 +1,16 @@
1
  ---
2
  title: Agent Loop
3
- emoji: πŸ”₯
4
  colorFrom: yellow
5
- colorTo: yellow
6
  sdk: static
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
1
  ---
2
  title: Agent Loop
3
+ emoji: πŸ”
4
  colorFrom: yellow
5
+ colorTo: gray
6
  sdk: static
7
  pinned: false
8
  ---
9
 
10
+ # The Agent Loop
11
+
12
+ Animated explainer for [Unit 6 of the Context Course](https://huggingface.co/learn/context-course): the agent loop. Renders the four-step cycle β€” `call llm β†’ parse β†’ execute β†’ append` β€” with a live terminal log that fills as the loop iterates and a `STOP Β· end_turn` branch that fires on the final pass.
13
+
14
+ Source composition (HyperFrames) lives at [github.com/huggingface/context-course/tree/main/course-hyperframes/agent-loop](https://github.com/huggingface/context-course/tree/main/course-hyperframes/agent-loop).
15
+
16
+ Embedded in the course via `<iframe>`.
agent-loop.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:808f3f4ba6965ea76b080d655ec44f22815fc870fe7a465873787f7e5dfe531e
3
+ size 3025452
index.html CHANGED
@@ -1,19 +1,28 @@
1
  <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
  <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
6
+ <title>The Agent Loop</title>
7
+ <style>
8
+ html, body {
9
+ margin: 0; padding: 0;
10
+ width: 100%; height: 100%;
11
+ background: #07080a;
12
+ overflow: hidden;
13
+ }
14
+ body {
15
+ display: flex; align-items: center; justify-content: center;
16
+ }
17
+ video {
18
+ width: 100%; height: 100%;
19
+ max-width: 100%; max-height: 100%;
20
+ object-fit: contain;
21
+ display: block;
22
+ }
23
+ </style>
24
+ </head>
25
+ <body>
26
+ <video src="agent-loop.mp4" autoplay muted loop playsinline></video>
27
+ </body>
28
  </html>