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

Function pgan

serving-ml-models/frontend/model/pgan.py:9–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7server_url=f"http://backend:8088/pgan"
8
9def pgan():
10 st.title("PGAN - Progressive Growing of GANS")
11 st.write(
12 """Serving PGAN model using FastAPI and Streamlit."""
13 )
14
15 if st.button("Generate"):
16 res = requests.get(server_url)
17 pgan_image = Image.open(io.BytesIO(res.content))
18 col1, col2 = st.beta_columns(2)
19 col1.header("PGAN Image")
20 col1.image(pgan_image, use_column_width=True)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected