f64 commited on
Commit ·
092397f
1
Parent(s): 5d61439
- pages/2_TECT_IDXYZ.py +3 -2
pages/2_TECT_IDXYZ.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import os, re, sys, time, math, shutil, urllib, string, random, pickle, zipfile, datetime, platform
|
| 2 |
-
import streamlit as st
|
|
|
|
| 3 |
import my_static_tools as mst
|
| 4 |
from my_static_tools import HF_tools as hft
|
| 5 |
from my_static_tools import XYZV_tools as xvt
|
|
@@ -31,7 +32,7 @@ REPO = mst.HfRepo("f64k/gaziev", "dataset", lambda: st.secrets["HF_WRITE"])
|
|
| 31 |
lstRepoFiles = hft.list_files_hf(REPO) # список уже имеющихся в репозитории файлов
|
| 32 |
dictTestFilesIdXyz = {f.upper().replace("ID_XYZ/",""): f.upper() for f in lstRepoFiles if f.upper().startswith("ID_XYZ/")}
|
| 33 |
|
| 34 |
-
|
| 35 |
def GetListOf_XYZV_ToTrainClassifier(repo):
|
| 36 |
lstRepoZipFiles = ["TrainData_1504_AB_gaziev.zip","TestData_1504_AB_gaziev.zip","TestData3_2204_noAB_gaziev.zip"]
|
| 37 |
dictTrainThreeDataframes = hft.load_dataframes_from_hf(repo, lstRepoZipFiles)
|
|
|
|
| 1 |
import os, re, sys, time, math, shutil, urllib, string, random, pickle, zipfile, datetime, platform
|
| 2 |
+
import streamlit as st
|
| 3 |
+
import pandas as pd, numpy as np
|
| 4 |
import my_static_tools as mst
|
| 5 |
from my_static_tools import HF_tools as hft
|
| 6 |
from my_static_tools import XYZV_tools as xvt
|
|
|
|
| 32 |
lstRepoFiles = hft.list_files_hf(REPO) # список уже имеющихся в репозитории файлов
|
| 33 |
dictTestFilesIdXyz = {f.upper().replace("ID_XYZ/",""): f.upper() for f in lstRepoFiles if f.upper().startswith("ID_XYZ/")}
|
| 34 |
|
| 35 |
+
|
| 36 |
def GetListOf_XYZV_ToTrainClassifier(repo):
|
| 37 |
lstRepoZipFiles = ["TrainData_1504_AB_gaziev.zip","TestData_1504_AB_gaziev.zip","TestData3_2204_noAB_gaziev.zip"]
|
| 38 |
dictTrainThreeDataframes = hft.load_dataframes_from_hf(repo, lstRepoZipFiles)
|