Skip to content

Commit

Permalink
docs: add video example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sradc committed Oct 8, 2023
1 parent 9918662 commit 23632fb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 6 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,11 @@
"\n",
"## Examples\n",
"\n",
"Video of an example agent in action:\n",
"\n",
"<video src=\"https://github.com/sradc/MakeAgents/assets/17290057/6ce06f41-026f-4621-b520-243a91bbf70d\" controls=\"controls\" style=\"max-width: 730px;\">\n",
"</video>\n",
"\n",
"### Example 1: A conversational agent tasked with getting the user's name"
]
},
Expand Down
7 changes: 6 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,11 @@ Currently supports OpenAI's GPT chat models out of the box.

## Examples

Video of an example agent in action:

<video src="https://github.com/sradc/MakeAgents/assets/17290057/6ce06f41-026f-4621-b520-243a91bbf70d" controls="controls" style="max-width: 730px;">
</video>

### 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)
File renamed without changes

0 comments on commit 23632fb

Please sign in to comment.