Spaces:
Sleeping
Sleeping
Auto-form: show the Local Network 'Allow' prompt image on the gate page
Browse filesAdd assets/lna_allow.png (LFS-tracked) and display it on the require_local_network
'click Allow' warning so users know exactly which button to press.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- .gitattributes +1 -0
- assets/lna_allow.png +3 -0
- streamlit_app.py +3 -0
.gitattributes
CHANGED
|
@@ -38,3 +38,4 @@ assets/*.png filter=lfs diff=lfs merge=lfs -text
|
|
| 38 |
|
| 39 |
# Shell scripts must keep LF endings so bash runs them on Linux (HF Spaces)
|
| 40 |
*.sh text eol=lf
|
|
|
|
|
|
| 38 |
|
| 39 |
# Shell scripts must keep LF endings so bash runs them on Linux (HF Spaces)
|
| 40 |
*.sh text eol=lf
|
| 41 |
+
assets/lna_allow.png filter=lfs diff=lfs merge=lfs -text
|
assets/lna_allow.png
ADDED
|
Git LFS Details
|
streamlit_app.py
CHANGED
|
@@ -251,6 +251,9 @@ def require_local_network():
|
|
| 251 |
st.warning(":material/lan: **กด “Allow / อนุญาต” ที่ป๊อปอัปของเบราว์เซอร์เพื่อใช้งานแอป**\n\n"
|
| 252 |
"ถ้าไม่มีป๊อปอัป หรือเคยกด Block: กดไอคอน 🔒 ที่แถบที่อยู่ → **Local network** → "
|
| 253 |
"**Allow** → รีโหลด — หรืออยู่ในเครือข่าย PTT/VPN แล้วกดปุ่มด้านล่าง")
|
|
|
|
|
|
|
|
|
|
| 254 |
if st.button(":material/refresh: ลองอีกครั้ง", use_container_width=True):
|
| 255 |
st.session_state["lna_attempt"] = attempt + 1
|
| 256 |
st.rerun()
|
|
|
|
| 251 |
st.warning(":material/lan: **กด “Allow / อนุญาต” ที่ป๊อปอัปของเบราว์เซอร์เพื่อใช้งานแอป**\n\n"
|
| 252 |
"ถ้าไม่มีป๊อปอัป หรือเคยกด Block: กดไอคอน 🔒 ที่แถบที่อยู่ → **Local network** → "
|
| 253 |
"**Allow** → รีโหลด — หรืออยู่ในเครือข่าย PTT/VPN แล้วกดปุ่มด้านล่าง")
|
| 254 |
+
st.image(os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
| 255 |
+
"assets", "lna_allow.png"),
|
| 256 |
+
caption="กดปุ่ม “Allow / อนุญาต”", width=360)
|
| 257 |
if st.button(":material/refresh: ลองอีกครั้ง", use_container_width=True):
|
| 258 |
st.session_state["lna_attempt"] = attempt + 1
|
| 259 |
st.rerun()
|