Spaces:
Sleeping
Sleeping
first commit
Browse files- app.py +26 -0
- img/galaxy_icon_182822.png +0 -0
- requirements.txt +1 -0
app.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from PIL import Image
|
3 |
+
|
4 |
+
|
5 |
+
def main():
|
6 |
+
st.title("Your App Title")
|
7 |
+
|
8 |
+
# ローカルのファイルパスを指定します。
|
9 |
+
local_image_path = "img/galaxy_icon_182822.png"
|
10 |
+
|
11 |
+
# 画像を読み込む
|
12 |
+
img = Image.open(local_image_path)
|
13 |
+
|
14 |
+
# Streamlitで画像を表示する
|
15 |
+
st.image(img, caption="Sample Image", use_column_width=True)
|
16 |
+
|
17 |
+
st.markdown("### 説明")
|
18 |
+
st.write("ここにアプリの説明を書いてください。")
|
19 |
+
|
20 |
+
user_input = st.text_input("テキスト入力エリアのラベル")
|
21 |
+
st.markdown("### 出力")
|
22 |
+
st.write(user_input)
|
23 |
+
|
24 |
+
|
25 |
+
if __name__ == "__main__":
|
26 |
+
main()
|
img/galaxy_icon_182822.png
ADDED
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
streamlit==1.21.0
|