Skip to content

Commit

Permalink
🎨 refactor(utils): Fix typo in NovelAiMetadata name in read_nai_tag.py
Browse files Browse the repository at this point in the history
README.md updated to reflect the corrected class name.
  • Loading branch information
sudoskys committed Mar 16, 2024
1 parent e282682 commit 4854e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The goal of this repository is to use Pydantic to build legitimate requests to a

### Roadmap 🚧

- [x] utils.NovelAIMetadata
- [x] utils.NovelAiMetadata
- [x] utils.random_prompt
- [x] /ai/generate-image
- [x] /user/subscription
Expand Down
4 changes: 2 additions & 2 deletions playground/read_nai_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
# @Software: PyCharm
import os

from novelai_python.utils import NovelAIMetadata
from novelai_python.utils import NovelAiMetadata

if not os.path.exists("generate_image.png"):
raise FileNotFoundError("generate_image.png not found,pls run generate_image.py first")
try:
meta = NovelAIMetadata.build_from_img(image_io="generate_image.png") # OR BytesIO(data)
meta = NovelAiMetadata.build_from_img(image_io="generate_image.png") # OR BytesIO(data)
except ValueError:
raise LookupError("Cant find a MetaData")

Expand Down

0 comments on commit 4854e33

Please sign in to comment.