FajarHidaa commited on
Commit
d7ff6ae
·
verified ·
1 Parent(s): dec30c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1965,7 +1965,7 @@ with gr.Blocks(title="Space Weather", head=GA4_HEAD) as demo:
1965
  # "nyantol" saat klik pertama -> baru berfungsi di klik kedua.
1966
  state = AppState.from_dict(state_dict)
1967
  has_cache = bool(state.cache)
1968
- modal_html = build_recommendation_modal(state.cache) if has_cache else "" # <-- BARU
1969
  return (
1970
  gr.update(visible=False),
1971
  gr.update(visible=True),
 
1965
  # "nyantol" saat klik pertama -> baru berfungsi di klik kedua.
1966
  state = AppState.from_dict(state_dict)
1967
  has_cache = bool(state.cache)
1968
+ modal_html = build_recommendation_modal(state.cache, skip_url=SHOPEE_LINK) if has_cache else ""
1969
  return (
1970
  gr.update(visible=False),
1971
  gr.update(visible=True),