-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
30 lines (21 loc) · 1.22 KB
/
app.py
File metadata and controls
30 lines (21 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Main app page (sets up navigation and routing)
import streamlit as st
from multiapp import MultiApp
from components import summarize, forecast, web_search
# Set up MultiApp feature (allows for multiple pages)
app = MultiApp()
st.set_page_config(page_title="Diplomatica ML App", page_icon="⬛", layout='centered', initial_sidebar_state="collapsed")
st.markdown("""
# Diplomatica ML Tools
Use our Machine Learning systems to aid in the political learning process and maximize efficiency
""")
# if st.button('Return to Dashboard'):
# webbrowser.open('https://diplomatica.vercel.app/dashboard', new=0)
st.markdown('<button style="border-color: black; border-radius: 10;" ><a style="-webkit-appearance: button; -moz-appearance: button; appearance: button; text-decoration: none; color: initial;" href="https://diplomatica.vercel.app/dashboard" target="_blank">Return to Dashboard</a></button>', unsafe_allow_html=True)
# st.markdown('[Return to Dashboard](https://diplomatica.vercel.app/dashboard)', unsafe_allow_html=True)
# Other pages
app.add_app("NLP Article Summary via Search", web_search.app)
app.add_app("NLP Article Summary via URL", summarize.app)
app.add_app("Forecast and Analyze Data", forecast.app)
# The main app
app.run()