Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,7 @@ async def get_answer(q: Query ):
|
|
146 |
text = q.text
|
147 |
try:
|
148 |
global client
|
149 |
-
imagei = client.text_to_image(text model ='openskyml/dalle-3-xl')
|
150 |
byte_array = io.BytesIO()
|
151 |
imagei.save(byte_array, format='JPEG')
|
152 |
response = Response(content=byte_array.getvalue(), media_type="image/png")
|
|
|
146 |
text = q.text
|
147 |
try:
|
148 |
global client
|
149 |
+
imagei = client.text_to_image(text, model ='openskyml/dalle-3-xl')
|
150 |
byte_array = io.BytesIO()
|
151 |
imagei.save(byte_array, format='JPEG')
|
152 |
response = Response(content=byte_array.getvalue(), media_type="image/png")
|