MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / generate_dcgan

Function generate_dcgan

serving-ml-models/backend/main.py:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47@app.get("/dcgan")
48def generate_dcgan():
49 dcgan_image = dcgan()
50 bytes_io = io.BytesIO()
51 dcgan_image.save(bytes_io, format="PNG")
52 return Response(bytes_io.getvalue(), media_type="image/png")
53
54
55@app.post("/photo2cartoon")

Callers

nothing calls this directly

Calls 1

dcganFunction · 0.90

Tested by

no test coverage detected