Skip to content

Commit

Permalink
Merge pull request #33 from eipm/fix-registration-button
Browse files Browse the repository at this point in the history
B2AI-552
  • Loading branch information
alexsigaras authored Jan 7, 2025
2 parents 2c818a5 + bc019cd commit fdd4332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_tabs(tabs_func):

def main():
# Current version of the app
version = "1.3.1"
version = "1.3.2"
# Map tab names to functions
# In this dictionary, the key is the tab name and the value is the function that will be called when the tab is selected
# The function is defined in the respective file
Expand Down
7 changes: 1 addition & 6 deletions src/tabs/overview.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import streamlit as st
import webbrowser

# Function to open a URL
def open_url():
webbrowser.open("https://healthdatanexus.ai/content/b2ai-voice/1.0/")

def overview_page(tab_name):
st.markdown(
Expand All @@ -30,4 +25,4 @@ def overview_page(tab_name):
"""
)

st.button("Register for Data Access", type="primary", on_click=open_url, help="Register for Data Access", icon=":material/download:")
st.link_button("Register for Data Access", type="primary", url="https://healthdatanexus.ai/content/b2ai-voice/1.0/", help="Register for Data Access", icon=":material/download:")

0 comments on commit fdd4332

Please sign in to comment.