Skip to content

Commit

Permalink
deploy: daa79e7
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Dec 6, 2024
1 parent 536e970 commit 470c826
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
Binary file modified en/.doctrees/environment.pickle
Binary file not shown.
Binary file modified en/.doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion en/_modules/agentscope/utils/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ <h1>Source code for agentscope.utils.common</h1><div class="highlight"><pre>
<span class="n">lower_url</span> <span class="o">=</span> <span class="n">url</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>

<span class="c1"># Web url</span>
<span class="k">if</span> <span class="n">parsed_url</span><span class="o">.</span><span class="n">scheme</span> <span class="o">!=</span> <span class="s2">&quot;&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">url</span><span class="p">)</span> <span class="ow">and</span> <span class="n">parsed_url</span><span class="o">.</span><span class="n">scheme</span> <span class="o">!=</span> <span class="s2">&quot;&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">any</span><span class="p">(</span><span class="n">lower_url</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span><span class="n">_</span><span class="p">)</span> <span class="k">for</span> <span class="n">_</span> <span class="ow">in</span> <span class="n">support_image_extensions</span><span class="p">):</span>
<span class="k">return</span> <span class="n">url</span>

Expand Down
Binary file modified zh_CN/.doctrees/environment.pickle
Binary file not shown.
Binary file modified zh_CN/.doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion zh_CN/_modules/agentscope/utils/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ <h1>agentscope.utils.common 源代码</h1><div class="highlight"><pre>
<span class="n">lower_url</span> <span class="o">=</span> <span class="n">url</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>

<span class="c1"># Web url</span>
<span class="k">if</span> <span class="n">parsed_url</span><span class="o">.</span><span class="n">scheme</span> <span class="o">!=</span> <span class="s2">&quot;&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">url</span><span class="p">)</span> <span class="ow">and</span> <span class="n">parsed_url</span><span class="o">.</span><span class="n">scheme</span> <span class="o">!=</span> <span class="s2">&quot;&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">any</span><span class="p">(</span><span class="n">lower_url</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span><span class="n">_</span><span class="p">)</span> <span class="k">for</span> <span class="n">_</span> <span class="ow">in</span> <span class="n">support_image_extensions</span><span class="p">):</span>
<span class="k">return</span> <span class="n">url</span>

Expand Down

0 comments on commit 470c826

Please sign in to comment.