rphrp1985 commited on
Commit
2d41de3
1 Parent(s): 0e01b72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")