Browse Source

use OpenJourney

master
Hendrik Langer 2 years ago
parent
commit
0fe7470b29
  1. 6
      bot.conf2
  2. 2
      matrix_pygmalion_bot/core.py

6
bot.conf2

@ -1,6 +0,0 @@
[Julia]
current_tick = 1310
[Hendrik]
current_tick = 1030

2
matrix_pygmalion_bot/core.py

@ -89,7 +89,7 @@ class Callbacks(object):
negative_prompt = "ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face"
if len(prompt) == 0:
prompt = "a beautiful woman"
output = await ai.generate_image(prompt, negative_prompt, "https://api.runpod.ai/v1/stable-diffusion-v1/", self.bot.runpod_api_key)
output = await ai.generate_image(prompt, negative_prompt, "https://api.runpod.ai/v1/sd-openjourney/", self.bot.runpod_api_key)
for imagefile in output:
await self.bot.send_image(self.client, room.room_id, imagefile)
return

Loading…
Cancel
Save