Skip to content

Commit

Permalink
Merge pull request #17 from eipm/develop
Browse files Browse the repository at this point in the history
v1.0.1
  • Loading branch information
jmtang2018 authored Oct 25, 2024
2 parents b74cce0 + f6693c4 commit dd0a501
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Docs for the Bridge2AI Voice Project.

[![Github](https://img.shields.io/badge/github-1.0.0-green?style=flat&logo=github)](https://github.com/eipm/bridge2ai-docs) [![Python 3.11.5](https://img.shields.io/badge/python-3.12.0-blue.svg)](https://www.python.org/downloads/release/python-3120/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![DOI](https://zenodo.org/badge/860006845.svg)](https://zenodo.org/doi/10.5281/zenodo.13834653)
[![Github](https://img.shields.io/badge/github-1.0.1-green?style=flat&logo=github)](https://github.com/eipm/bridge2ai-docs) [![Python 3.11.5](https://img.shields.io/badge/python-3.12.0-blue.svg)](https://www.python.org/downloads/release/python-3120/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![DOI](https://zenodo.org/badge/860006845.svg)](https://zenodo.org/doi/10.5281/zenodo.13834653)


## 🤝 License
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_tabs(tabs_func):

def main():
# Current version of the app
version = "1.0.0"
version = "1.0.1"
# 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
9 changes: 8 additions & 1 deletion src/tabs/study_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
import pandas as pd
import plotly.express as px
import json
import os

def load_data():
# Read the JSON object from the file
with open('data/dashboard_data.json', 'r') as json_file:
docs_data_path = os.getenv('DOCS_DATA_PATH')
file_path = os.path.join(docs_data_path, 'dashboard_data.json')

# Check if the file path is valid and the file exists
if not os.path.isfile(file_path):
raise FileNotFoundError(f"The file at path {file_path} does not exist.")
with open(file_path, 'r') as json_file:
data = json.load(json_file)
return data

Expand Down

0 comments on commit dd0a501

Please sign in to comment.