nurindahpratiwi commited on
Commit
7fa80d3
·
1 Parent(s): 673f4ca
Files changed (2) hide show
  1. app.py +3 -1
  2. requirements.txt +4 -1
app.py CHANGED
@@ -4,11 +4,13 @@ import joblib
4
  import matplotlib.pyplot as plt
5
  from huggingface_hub import hf_hub_download
6
  import time
7
- import base64
 
8
 
9
  # Load the pre-trained numerical imputer, scaler, and model using joblib
10
 
11
  REPO_ID = "Abubakari/Sepsis-prediction-streamlit-app"
 
12
 
13
  num_imputer = joblib.load(
14
  hf_hub_download(repo_id=REPO_ID, filename="numerical_imputer.joblib")
 
4
  import matplotlib.pyplot as plt
5
  from huggingface_hub import hf_hub_download
6
  import time
7
+ import base64
8
+ from transformers import AutoTokenizer
9
 
10
  # Load the pre-trained numerical imputer, scaler, and model using joblib
11
 
12
  REPO_ID = "Abubakari/Sepsis-prediction-streamlit-app"
13
+ tokenizer.push_to_hub(REPO_ID)
14
 
15
  num_imputer = joblib.load(
16
  hf_hub_download(repo_id=REPO_ID, filename="numerical_imputer.joblib")
requirements.txt CHANGED
@@ -9,4 +9,7 @@ seaborn==0.12.2
9
  streamlit==1.20.0
10
  fastapi==0.95.1
11
  uvicorn==0.22.0
12
- pydantic==1.10.7
 
 
 
 
9
  streamlit==1.20.0
10
  fastapi==0.95.1
11
  uvicorn==0.22.0
12
+ pydantic==1.10.7
13
+ transformers==4.24.0
14
+ tokenizers== 0.13.2
15
+ huggingface_hub==0.11