Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,25 +13,6 @@ scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/au
|
|
| 13 |
creds = ServiceAccountCredentials.from_json_keyfile_name("analog-marking-416002-e369840763fa.json", scope)
|
| 14 |
client = gspread.authorize(creds)
|
| 15 |
|
| 16 |
-
st.markdown("""
|
| 17 |
-
<style>
|
| 18 |
-
.description-box {
|
| 19 |
-
background-color: #f0f0f0; /* Light gray background */
|
| 20 |
-
padding: 10px;
|
| 21 |
-
border-radius: 10px;
|
| 22 |
-
margin-bottom: 20px; /* 조정된 여백 */
|
| 23 |
-
}
|
| 24 |
-
</style>
|
| 25 |
-
<div class="description-box">
|
| 26 |
-
<p> How to use </br>
|
| 27 |
-
1. 아래에서 '저연차 팀장', '중간연차 팀장', '고연차 팀장' 중 하나의 버튼을 클릭하여 조언을 제공할 팀장의 연차를 선택해주세요. </br>
|
| 28 |
-
2. 버튼을 클릭하면 선택된 연차의 고민이 랜덤으로 표시됩니다. </br>
|
| 29 |
-
3. 고민 내용 아래에 위치한 텍스트 입력 창에 조언을 작성한 후, '조언 제출하기' 버튼을 눌러주세요. </br>
|
| 30 |
-
</p>
|
| 31 |
-
</div>
|
| 32 |
-
""", unsafe_allow_html=True)
|
| 33 |
-
|
| 34 |
-
|
| 35 |
# Google Sheets 문서 열기
|
| 36 |
sheet = client.open("generation_streamlit_0302").sheet1
|
| 37 |
|
|
@@ -55,7 +36,7 @@ st.markdown("""
|
|
| 55 |
background-color: #f0f0f0; /* Light gray background */
|
| 56 |
padding: 10px;
|
| 57 |
border-radius: 10px;
|
| 58 |
-
margin-bottom:
|
| 59 |
}
|
| 60 |
</style>
|
| 61 |
""", unsafe_allow_html=True)
|
|
@@ -63,6 +44,17 @@ st.markdown("""
|
|
| 63 |
# 헤더 표시
|
| 64 |
st.markdown('<div class="header">🏆 다른 팀장 고민해결 도와주기 🏆 </div>', unsafe_allow_html=True)
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
# Load Excel file into DataFrame
|
| 67 |
df = pd.read_excel("painpoint2.xlsx")
|
| 68 |
|
|
|
|
| 13 |
creds = ServiceAccountCredentials.from_json_keyfile_name("analog-marking-416002-e369840763fa.json", scope)
|
| 14 |
client = gspread.authorize(creds)
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
# Google Sheets 문서 열기
|
| 17 |
sheet = client.open("generation_streamlit_0302").sheet1
|
| 18 |
|
|
|
|
| 36 |
background-color: #f0f0f0; /* Light gray background */
|
| 37 |
padding: 10px;
|
| 38 |
border-radius: 10px;
|
| 39 |
+
margin-bottom: 20px; /* 조정된 여백 */
|
| 40 |
}
|
| 41 |
</style>
|
| 42 |
""", unsafe_allow_html=True)
|
|
|
|
| 44 |
# 헤더 표시
|
| 45 |
st.markdown('<div class="header">🏆 다른 팀장 고민해결 도와주기 🏆 </div>', unsafe_allow_html=True)
|
| 46 |
|
| 47 |
+
# 사용자 안내 문구 표시
|
| 48 |
+
st.markdown("""
|
| 49 |
+
<div class="description-box">
|
| 50 |
+
<p> How to use </br>
|
| 51 |
+
1. 아래에서 '저연차 팀장', '중간연차 팀장', '고연차 팀장' 중 하나의 버튼을 클릭하여 조언을 제공할 팀장의 연차를 선택해주세요. </br>
|
| 52 |
+
2. 버튼을 클릭하면 선택된 연차의 고민이 랜덤으로 표시됩니다. </br>
|
| 53 |
+
3. 고민 내용 아래에 위치한 텍스트 입력 창에 조언을 작성한 후, '조언 제출하기' 버튼을 눌러주세요. </br>
|
| 54 |
+
</p>
|
| 55 |
+
</div>
|
| 56 |
+
""", unsafe_allow_html=True)
|
| 57 |
+
|
| 58 |
# Load Excel file into DataFrame
|
| 59 |
df = pd.read_excel("painpoint2.xlsx")
|
| 60 |
|