Spaces:
Paused
Paused
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -126,7 +126,10 @@ RTL_CSS = """
|
|
| 126 |
[data-testid="stSidebar"] p, [data-testid="stSidebar"] li {
|
| 127 |
text-align: right;
|
| 128 |
}
|
| 129 |
-
[data-testid="stChatMessage"]
|
|
|
|
|
|
|
|
|
|
| 130 |
direction: rtl;
|
| 131 |
text-align: right;
|
| 132 |
}
|
|
@@ -134,6 +137,14 @@ RTL_CSS = """
|
|
| 134 |
direction: rtl;
|
| 135 |
text-align: right;
|
| 136 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
</style>
|
| 138 |
"""
|
| 139 |
|
|
@@ -148,18 +159,22 @@ def main() -> None:
|
|
| 148 |
if "messages" not in st.session_state:
|
| 149 |
st.session_state.messages = []
|
| 150 |
|
| 151 |
-
|
| 152 |
-
|
| 153 |
st.caption(
|
| 154 |
'"פרומפט" = ההודעה שכותבים לבוט. נסחו אותה בחוכמה — '
|
| 155 |
"שכנוע, תחבולות ומשחקי תפקידים מותרים 😏"
|
| 156 |
)
|
| 157 |
for challenge in CHALLENGES:
|
| 158 |
st.info(challenge)
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
st.markdown("ההוראות הנסתרות שהבוט קיבל:")
|
| 164 |
st.markdown(
|
| 165 |
"<div dir='rtl' style='background:#f0f2f6;color:#111;"
|
|
|
|
| 126 |
[data-testid="stSidebar"] p, [data-testid="stSidebar"] li {
|
| 127 |
text-align: right;
|
| 128 |
}
|
| 129 |
+
[data-testid="stChatMessage"],
|
| 130 |
+
[data-testid="stChatInput"],
|
| 131 |
+
[data-testid="stExpander"],
|
| 132 |
+
[data-testid="stAlert"] {
|
| 133 |
direction: rtl;
|
| 134 |
text-align: right;
|
| 135 |
}
|
|
|
|
| 137 |
direction: rtl;
|
| 138 |
text-align: right;
|
| 139 |
}
|
| 140 |
+
/* במסכי טלפון: פחות שוליים, ניצול מלא של הרוחב */
|
| 141 |
+
@media (max-width: 640px) {
|
| 142 |
+
.block-container {
|
| 143 |
+
padding-top: 1.5rem;
|
| 144 |
+
padding-left: 0.8rem;
|
| 145 |
+
padding-right: 0.8rem;
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
</style>
|
| 149 |
"""
|
| 150 |
|
|
|
|
| 159 |
if "messages" not in st.session_state:
|
| 160 |
st.session_state.messages = []
|
| 161 |
|
| 162 |
+
# המשימות בגוף העמוד — נראות גם בטלפון בלי לפתוח את התפריט הצדדי
|
| 163 |
+
with st.expander("🎯 המשימות שלכם", expanded=True):
|
| 164 |
st.caption(
|
| 165 |
'"פרומפט" = ההודעה שכותבים לבוט. נסחו אותה בחוכמה — '
|
| 166 |
"שכנוע, תחבולות ומשחקי תפקידים מותרים 😏"
|
| 167 |
)
|
| 168 |
for challenge in CHALLENGES:
|
| 169 |
st.info(challenge)
|
| 170 |
+
|
| 171 |
+
if st.button("🔄 התחל מחדש"):
|
| 172 |
+
st.session_state.messages = []
|
| 173 |
+
st.rerun()
|
| 174 |
+
|
| 175 |
+
# מצב מנחה נשאר בתפריט הצדדי — לחשיפה בזמן הסיכום
|
| 176 |
+
with st.sidebar:
|
| 177 |
+
with st.expander("🔧 מצב מנחה", expanded=False):
|
| 178 |
st.markdown("ההוראות הנסתרות שהבוט קיבל:")
|
| 179 |
st.markdown(
|
| 180 |
"<div dir='rtl' style='background:#f0f2f6;color:#111;"
|