Skip to content

Commit

Permalink
Merge pull request #2 from Bikram-ghuku/main
Browse files Browse the repository at this point in the history
Update Kronos2.0 Deps and code
  • Loading branch information
proffapt committed Jun 7, 2024
2 parents 460aab3 + e84509b commit 4f0d55e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-slim
FROM python:3.12.3-slim

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python -m venv env

### Activate the virtual environment
```shell
env\Scripts\activate
source env/bin/activate
```

### Install Dependencies
Expand Down
7 changes: 3 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@

#st.set_page_config(layout="wide")
st.set_page_config(page_title='Kronos2.0',page_icon = 'favicon.ico',layout = 'wide')
st.set_option('deprecation.showPyplotGlobalUse', False)
head = """<script async defer data-website-id="f7b646ab-c9b9-4995-bd4c-14e1b9590000" src="https://umami.mukul-mehta.in/umami.js"></script>"""
components.html(head, height=0)

@st.cache(allow_output_mutation=True)
@st.cache_resource
def get_data():
return pd.read_csv(r'data/final_grades.csv')

@st.cache
@st.cache_data
def get_json():
f = open(r'data/data_file.json')
data = json.load(f)
Expand Down Expand Up @@ -134,7 +133,7 @@ def get_json():
st.write("")
abc = df_num.transpose()
colNames = []
for (columnName, columnData) in abc.iteritems():
for (columnName, columnData) in abc.items():
colNames.append(columnName)
abc[columnName] = (abc[columnName] / abc[columnName].sum()) * 100

Expand Down
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
matplotlib==3.3.3
pandas==1.1.5
pipreqs==0.4.10
plotly==4.14.1
scipy==1.5.4
seaborn==0.11.0
streamlit==1.1.0
matplotlib==3.9.0
pandas==2.2.2
pipreqs==0.5.0
plotly==5.22.0
scipy==1.13.1
seaborn==0.13.2
streamlit==1.35.0

0 comments on commit 4f0d55e

Please sign in to comment.