Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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', ['
|
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 |
|