Skip to content

Commit

Permalink
Deploying to gh-pages from @ cae6a53 πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Sep 25, 2023
1 parent 42e86ed commit 62edaa9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion _sources/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ A toy implementation of an agent (similar to BabyAGI or AutoGPT) with Outlines:
"""
def agent(objective, goals, tools)
def agent(objective, goals, tools):
complete = models.text_completion.hf("sshleifer/tiny-gpt2")
prompt = agent_prompt(objective, goals, tools , command_response)
answer = complete(prompt)
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ <h2>πŸ‘€ Sneak Peek<a class="headerlink" href="#sneak-peek" title="Permalink to
<span class="sd"> &quot;&quot;&quot;</span>


<span class="k">def</span> <span class="nf">agent</span><span class="p">(</span><span class="n">objective</span><span class="p">,</span> <span class="n">goals</span><span class="p">,</span> <span class="n">tools</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">agent</span><span class="p">(</span><span class="n">objective</span><span class="p">,</span> <span class="n">goals</span><span class="p">,</span> <span class="n">tools</span><span class="p">):</span>
<span class="n">complete</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">text_completion</span><span class="o">.</span><span class="n">hf</span><span class="p">(</span><span class="s2">&quot;sshleifer/tiny-gpt2&quot;</span><span class="p">)</span>
<span class="n">prompt</span> <span class="o">=</span> <span class="n">agent_prompt</span><span class="p">(</span><span class="n">objective</span><span class="p">,</span> <span class="n">goals</span><span class="p">,</span> <span class="n">tools</span> <span class="p">,</span> <span class="n">command_response</span><span class="p">)</span>
<span class="n">answer</span> <span class="o">=</span> <span class="n">complete</span><span class="p">(</span><span class="n">prompt</span><span class="p">)</span>
Expand Down

0 comments on commit 62edaa9

Please sign in to comment.