demosforGPT / app.py
gmoriki's picture
fix sentence
944b4f4
raw
history blame contribute delete
No virus
797 Bytes
import streamlit as st
from PIL import Image
def main():
st.title("言い得て妙・生成アプリ")
# ローカルのファイルパスを指定します。
local_image_path = (
"img/_An_ethereal_boy_gracefully_traversing_a_realm_of_floating_mirr_7f76488c-8b95-4fa3-8230-a877ca792282.png"
)
# 画像を読み込む
img = Image.open(local_image_path)
# Streamlitで画像を表示する
st.image(img, use_column_width=True)
st.markdown("### 説明")
st.write("言い得て妙をあなたに差し上げます")
user_input = st.text_input("ここに単語を入力してください。適切な例えやアナロジーを提供します。")
st.markdown("### 出力")
st.write(user_input)
if __name__ == "__main__":
main()