Spaces:
Sleeping
Sleeping
Commit ·
4d36e92
1
Parent(s): a2ad39c
Modify read origin file method
Browse files- src/streamlit_app.py +4 -2
src/streamlit_app.py
CHANGED
|
@@ -6,14 +6,16 @@ import streamlit.components.v1 as components
|
|
| 6 |
import shap
|
| 7 |
import pickle
|
| 8 |
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
| 9 |
#import datetime
|
| 10 |
|
| 11 |
arquivos_processados_bb=[]
|
| 12 |
-
arquivos_processados_bb.append('
|
| 13 |
|
| 14 |
shap_values_bb = []
|
| 15 |
for path in arquivos_processados_bb:
|
| 16 |
-
with open(path, 'rb') as inp:
|
| 17 |
shap_values_bb.append(pickle.load(inp))
|
| 18 |
inp.close()
|
| 19 |
|
|
|
|
| 6 |
import shap
|
| 7 |
import pickle
|
| 8 |
import matplotlib.pyplot as plt
|
| 9 |
+
from huggingface_hub import HfFileSystem
|
| 10 |
+
fs = HfFileSystem()
|
| 11 |
#import datetime
|
| 12 |
|
| 13 |
arquivos_processados_bb=[]
|
| 14 |
+
arquivos_processados_bb.append('spaces/marcossuzuki/TCC_PoliUSPPro/transcrição audio RI/BB/valores_shap-bb1t24.save')
|
| 15 |
|
| 16 |
shap_values_bb = []
|
| 17 |
for path in arquivos_processados_bb:
|
| 18 |
+
with fs.open(path, 'rb') as inp:
|
| 19 |
shap_values_bb.append(pickle.load(inp))
|
| 20 |
inp.close()
|
| 21 |
|