Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 '
|
245 |
-
response = client.images.generate(model="dall-e-3",prompt=prompt,size="1024x1024",quality="standard",n=1, response_format='
|
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:
|