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

Function dcgan

serving-ml-models/frontend/model/dcgan.py:10–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8server_url=f"http://backend:8088/dcgan"
9
10def dcgan():
11 st.title("DCGAN on FashionGen")
12 st.write(
13 """Serving DCGAN model using FastAPI and Streamlit."""
14 )
15
16 if st.button("Generate"):
17 res = requests.get(server_url)
18 dcgan_image = Image.open(io.BytesIO(res.content))
19 col1, col2 = st.beta_columns(2)
20 col1.header("DCGAN Image")
21 col1.image(dcgan_image, use_column_width=True)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected