Skip to content

Commit

Permalink
Adjust quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
jncraton committed Jan 23, 2025
1 parent 1c96dfc commit ddce63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languagemodels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ def get_web(url: str) -> str:
url, headers={"User-Agent": "Mozilla/5.0 (compatible; languagemodels)"}
)

if 'text/plain' in res.raw.getheader("content-type"):
if "text/plain" in res.raw.getheader("content-type"):
return res.text
elif 'text/html' in res.raw.getheader("content-type"):
elif "text/html" in res.raw.getheader("content-type"):
return get_html_paragraphs(res.text)

return ""
Expand Down

0 comments on commit ddce63d

Please sign in to comment.