Ignore this topic

Question:
Hey guys, I used a template for a DALL-E with node.js. I wanted to put this in a HTML program, so I asked ChatGPT, which fixed something and nothing proceeded to show up on the Webview.
So, I asked ChatGPT to convert that code into Python, so that I could use it in Flask. But, it tells me that it cannot import Configuration from openai, and ChatGPT wasn’t helping either. Can someone help me with this?
Repl link:
https://replit.com/@NateDhaliwal/Dall-E?-Py

from openai import Configuration, OpenAIApi
import os
configuration = Configuration(api_key=os.environ['OPENAI_API_KEY'])
openai = OpenAIApi(configuration)

response = openai.create_image(prompt=input("Describe the image you want: "),n=1,size="1024x1024")

link = response.data["data"][0]["url"]
print(link)

Otherwise, can someone tell me how to use Express? I can use that?

Ignore this topic, I will close it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.