zenafey / prodiapy Goto Github PK
View Code? Open in Web Editor NEWPython module for using Stable Diffusion Prodia API
Home Page: https://prodiapy.notion.site/Quick-start-b91c7da3918342e6b2d5748e96e68a74
License: MIT License
Python module for using Stable Diffusion Prodia API
Home Page: https://prodiapy.notion.site/Quick-start-b91c7da3918342e6b2d5748e96e68a74
License: MIT License
I see the endpoint for both the regular models as well as the SDXL use the same Endpoint, its the urls that differ and very minor as well. example :
regular endpoint : https://api.prodia.com/v1/sd/generate
SDXL endpoint : https://api.prodia.com/v1/sdxl/generate
my question is, why have you guys not updated this github to add the sdxl model ?
Dear ProdiaPy Developers,
I am currently using your ProdiaPy library for a project, and I find it very useful. However, I am encountering a problem due to my Python environment. I am using Python version lower than 3.10 (3.8.17), and it seems that your library uses the match
statement, which is a feature introduced in Python 3.10.
Unfortunately, upgrading my Python version is not an option for me at the moment due to various reasons. I was wondering if it would be possible for you to provide a version of ProdiaPy that is compatible with lower Python versions, or if there is a workaround that you could suggest.
I understand that this might require additional work, but it would be greatly appreciated. Thank you for your time and consideration.
Best Regards,
NowLoadY
This code used to work but now it doesn't.
Small size images are downloaded with the current library code.
In the code I gave, 1024x1024 images could previously be downloaded.
How can I solve this problem?
from prodiapy import StableDiffusionXL
def resimcek(prodia_apikey, sorgu): while True: try: pipe = StableDiffusionXL( api_key=prodia_apikey ) job = pipe.generate(prompt=sorgu) result = pipe.wait_for(job) image = result['imageUrl'] image1 = image.startswith("https://") if bool(image) and bool(image1): return image else: print("Resim Çekilemedi. 5 Saniye Sonra Tekrar Denenecek") sleep(5) except Exception as e20: print("Prodia Hata Alındı. Tekrar Denenecek. Hata Kodu e20: "+str(e20)) yaz = open("log.txt", "a", encoding="utf-8") yaz.write("Prodia Hata Alındı. Tekrar Denenecek. Hata Kodu e20: "+str(e20)+"\n") yaz.close() sleep(5)
I am using Python version 3.8.6. Why is this library not working?
Why is there an async class when its using request and not aiohttp?
There is no point, because request is still blocking.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.