npc0 commited on
Commit
781e1f7
·
verified ·
1 Parent(s): ab3cab2

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -834,7 +834,7 @@ def view_topic_page():
834
  # Include functional information
835
  st.markdown(f"**Shareable Quest Scroll ID:** `{topic_id}`")
836
  # Construct shareable link using current app URL
837
- app_url = st.query_params.get('base', ['http://localhost:8501/'])[0] # Get base URL if available
838
  shareable_link = f"{app_url}?topic={topic_id}" if app_url else f"?topic={topic_id}"
839
  st.markdown(f"**Shareable Scroll Link:** `{shareable_link}`")
840
 
 
834
  # Include functional information
835
  st.markdown(f"**Shareable Quest Scroll ID:** `{topic_id}`")
836
  # Construct shareable link using current app URL
837
+ app_url = st.query_params.get('base', ['https://huggingface.co/spaces/npc0/SteamPolis/'])[0] # Get base URL if available
838
  shareable_link = f"{app_url}?topic={topic_id}" if app_url else f"?topic={topic_id}"
839
  st.markdown(f"**Shareable Scroll Link:** `{shareable_link}`")
840