goodgun / app.py
ljh838's picture
update
d949113
raw
history blame
629 Bytes
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)")