Jofthomas HF staff commited on
Commit
694028b
1 Parent(s): 923b7bc

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +2 -2
TextGen/router.py CHANGED
@@ -234,6 +234,6 @@ async def generate_song():
234
  return infos
235
 
236
  @app.post('/generate_image')
237
- def Imagen(prompt:ImageGen=None):
238
- image_bytes=generate_image(ImageGen.prompt)
239
  return Response(content=image_bytes, media_type="image/png")
 
234
  return infos
235
 
236
  @app.post('/generate_image')
237
+ def Imagen(image:ImageGen=None):
238
+ image_bytes=generate_image(image.prompt)
239
  return Response(content=image_bytes, media_type="image/png")