Member-only story
Catch The Wave, or Be Left Behind: AI — A Land of Infinite Opportunities?
I feel we are living in a time of dramatic change. It happened for me when we moved from Microsoft Windows program to the Web. For this, I made the decision to move all my code from Microsoft .NET to ASP.NET, and it was one of the best decisions I made. Now, with AI, I believe I have got to move, as it will be left behind. Basically, AI is now becoming the greatest computing engine that we have created, and LLMs are often at the core of it.
So, DALLE-3 has grown since the original version and is now a powerful text-to-image conversion program that can produce stunning graphics. For this, we can link to the API with:
from openai import OpenAI
import sys
client = OpenAI(api_key='API KEY HERE')
msg="."
if (len(sys.argv)>1):
msg=str(sys.argv[1])
try:
response = client.images.generate(model="dall-e-3",prompt=msg,size="1024x1024",quality="standard",n=1,)
print(f"<img src='{response.data[0].url}' width=800px />")
except Exception as e:
print("An error occurred:", str(e))So, let’s go [here]:
