alexkueck commited on
Commit
258c3d9
1 Parent(s): 8b2e190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -242,7 +242,7 @@ def generate_bild(prompt, chatbot, temperature=0.5, max_new_tokens=4048,top_p=0
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
  chatbot[-1][1]=image_url = response.data[0].url
247
  return chatbot, "Success"
248
 
 
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
  chatbot[-1][1]=image_url = response.data[0].url
247
  return chatbot, "Success"
248