Spaces:
Running
Running
Initial: agent loop animation
Browse files- .gitattributes +1 -0
- README.md +9 -3
- agent-loop.mp4 +3 -0
- 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:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|