Skip to content

Commit

Permalink
docs: add video example to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sradc committed Oct 8, 2023
1 parent 9918662 commit ca727bd
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.mp4 filter=lfs diff=lfs merge=lfs -text
6 changes: 5 additions & 1 deletion README.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"`pip install make_agents`\n",
" \n",
"<p align=\"center\">\n",
" <img src=\"README_files/make_agents_logo.jpg\" width=256>\n",
" <img src=\"static/make_agents_logo.jpg\" width=256>\n",
"</p>\n",
"\n",
"# MakeAgents \n",
Expand All @@ -44,6 +44,10 @@
"\n",
"## Examples\n",
"\n",
"Here's a video showing a MakeAgents agent in action:\n",
"\n",
"![Bash assistant example](static/bash_assistant_example.mp4)\n",
"\n",
"### Example 1: A conversational agent tasked with getting the user's name"
]
},
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License. -->
`pip install make_agents`

<p align="center">
<img src="https://raw.githubusercontent.com/sradc/MakeAgents/main/README_files/make_agents_logo.jpg" width=256>
<img src="https://raw.githubusercontent.com/sradc/MakeAgents/main/static/make_agents_logo.jpg" width=256>
</p>

# MakeAgents
Expand All @@ -38,6 +38,10 @@ Currently supports OpenAI's GPT chat models out of the box.

## Examples

Here's a video showing a MakeAgents agent in action:

![Bash assistant example](static/bash_assistant_example.mp4)

### Example 1: A conversational agent tasked with getting the user's name


Expand Down
10 changes: 6 additions & 4 deletions scripts/replace_readme_image_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
GITHUB_PATH = "sradc/MakeAgents/main"

with open(FILE_PATH, "r") as file:
data = file.read()
text = file.read()

# Find links referencing README_files/ and replace them with absolute links
pattern = r"(README_files/.*\.(png|jpg))"
replacement = r"https://raw.githubusercontent.com/" + GITHUB_PATH + r"/\1"
text = re.sub(pattern, replacement, text)

# Substitute the pattern with the replacement
new_data = re.sub(pattern, replacement, data)
pattern = r"(static/.*\.(png|jpg))"
replacement = r"https://raw.githubusercontent.com/" + GITHUB_PATH + r"/\1"
text = re.sub(pattern, replacement, text)

with open(FILE_PATH, "w") as file:
file.write(new_data)
file.write(text)
3 changes: 3 additions & 0 deletions static/bash_assistant_example.mp4
Git LFS file not shown
File renamed without changes

0 comments on commit ca727bd

Please sign in to comment.