alexkueck commited on
Commit
89707d5
1 Parent(s): c50fbb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -241,8 +241,8 @@ def generate_bild(prompt, chatbot, temperature=0.5, max_new_tokens=4048,top_p=0
241
  """
242
  print("Bild Erzeugung DallE..............................")
243
  client = OpenAI()
244
- #als Format ginge auch 'b64_json', n - Anz. der erzeugten Bilder
245
- response = client.images.generate(model="dall-e-3",prompt=prompt,size="1024x1024",quality="standard",n=1, response_format='url')
246
  print("response.........................")
247
  print(response)
248
  #with open(image_path, "rb") as image_file:
 
241
  """
242
  print("Bild Erzeugung DallE..............................")
243
  client = OpenAI()
244
+ #als Format ginge auch 'url', n - Anz. der erzeugten Bilder
245
+ response = client.images.generate(model="dall-e-3",prompt=prompt,size="1024x1024",quality="standard",n=1, response_format='b64_json')
246
  print("response.........................")
247
  print(response)
248
  #with open(image_path, "rb") as image_file: