Bohaska commited on
Commit
4f1681e
·
1 Parent(s): 89c816b

trying to fix multi-page routing again

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -541,8 +541,12 @@ with gr.Blocks() as demo:
541
  submit_btn="Search Resolutions",
542
  article="Made by [Jiangbei](www.nationstates.net/nation=jiangbei). GA data parsed from NationStates. Powered by BAAI/bge-m3."
543
  )
544
- sentiment_page = create_sentiment_page()
545
- demo.route("/sentiment", sentiment_page)
 
 
 
 
546
 
547
  # --- Launch App ---
548
  if __name__ == "__main__":
 
541
  submit_btn="Search Resolutions",
542
  article="Made by [Jiangbei](www.nationstates.net/nation=jiangbei). GA data parsed from NationStates. Powered by BAAI/bge-m3."
543
  )
544
+
545
+ sentiment_page_blocks = create_sentiment_page()
546
+
547
+ with demo.route("Sentiment Analysis", "/sentiment"):
548
+ sentiment_page_blocks.render()
549
+
550
 
551
  # --- Launch App ---
552
  if __name__ == "__main__":