Skip to content

Commit

Permalink
🔧 chore: Update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantanjw committed Jun 24, 2024
1 parent 6aa185b commit dd4fbb3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/streamlit_demo/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
streamlit
civitai-py
httpx
httpx = ">=0.23.3"
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ python = "^3.7"
urllib3 = ">= 1.25.3"
pydantic = ">=2"
typing-extensions = ">=4.7.1"
httpx = ">=0.23.3"

[tool.poetry.dev-dependencies]
pytest = ">=7.2.1"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ setuptools >= 21.0.0
urllib3 >= 1.25.3, < 2.1.0
pydantic >= 2
typing-extensions >= 4.7.1
httpx
httpx >=0.23.3
15 changes: 8 additions & 7 deletions tests/test_create_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class TestCreateImage(unittest.TestCase):
def test_create_from_text_job(self):
input_data = {
"model": "urn:air:sd1:checkpoint:civitai:4384@128713",
"model": "urn:air:pony:checkpoint:civitai:372465@534642",
"params": {
"prompt": "RAW photo, face portrait photo of 26 y.o woman, wearing black dress, happy face, hard shadows, cinematic shot, dramatic lighting",
"negativePrompt": "(deformed, distorted, disfigured:1.3)",
Expand All @@ -17,12 +17,13 @@ def test_create_from_text_job(self):
"height": 512,
"clipSkip": 2
},
"additionalNetworks": {
# Detail enhancer LoRA: https://civitai.com/models/82098/add-more-details-detail-enhancer-tweaker-lora
"urn:air:sd1:lora:civitai:82098@87153": {
"strength": 1.0
}
}
# "additionalNetworks": {
# # Detail enhancer LoRA: https://civitai.com/models/82098/add-more-details-detail-enhancer-tweaker-lora
# "urn:air:sd1:lora:civitai:82098@87153": {
# "strength": 1.0
# }
# },
"quantity": 6
}

output = civitai.image.create(input_data, wait=True)
Expand Down

0 comments on commit dd4fbb3

Please sign in to comment.