Menixis Claude Opus 4.8 (1M context) commited on
Commit
a9dc2e6
·
1 Parent(s): 18b092a

Auto-form: show the Local Network 'Allow' prompt image on the gate page

Browse files

Add 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>

Files changed (3) hide show
  1. .gitattributes +1 -0
  2. assets/lna_allow.png +3 -0
  3. 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

  • SHA256: ed82b2c2a0d99ea5166b78079989dd5fb9aaa395ee4dfc9ce391b2eb68804cf7
  • Pointer size: 130 Bytes
  • Size of remote file: 82.4 kB
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()