|
from io import BytesIO |
|
import streamlit as st |
|
import main |
|
|
|
st.markdown(""" |
|
# ๊ตณ๊ฑด์ด ์์ฑ๊ธฐ |
|
์บ๋ฆญํฐ์ ์ผ๊ตด์ ์ธ์ํ์ฌ ๊ตณ๊ฑด์ด ์ผ๊ตด๋ก ๋ณํํฉ๋๋ค. |
|
2D ์บ๋ฆญํฐ ์ผ๊ตด์ ์ธํ์ผ๋ก ๋ฃ์์ ๋ ๊ฐ์ฅ ์ ์๋ํฉ๋๋ค. |
|
""") |
|
|
|
f = st.file_uploader('Input Image', ['png', 'jpg', 'jpeg'], False, help=".png, .jpeg, .jpg ํ์ผ๋ง ์ง์๋ฉ๋๋ค.") |
|
|
|
if f is not None: |
|
img = BytesIO(f.read()) |
|
img.seek(0) |
|
resultbytes = main.generate(img) |
|
result = BytesIO(resultbytes) |
|
result.seek(0) |
|
st.image(result, caption="Generated Image") |
|
|
|
st.markdown("by [์ด์ฌํฌ](https://github.com/ij5)") |