Update TextGen/router.py
Browse files- 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(
|
238 |
-
image_bytes=generate_image(
|
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")
|