V2 new model with text nlp

This commit is contained in:
Mario Gonzalez Gil 2023-11-27 18:47:46 +01:00
parent 55df233473
commit 74b63c7b65
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ from typing import Optional
#from cleantext import clean #from cleantext import clean
import re import re
model="Modelo_embedding_Mexico_Puebla/all-mpnet-base-v2/model" model="Modelo_embedding_Mexico_Puebla/all-mpnet-base-v2/model"
entrenamiento="V1.0" entrenamiento="V1.2"
@ -97,7 +97,7 @@ def loadmodelEmb(model_name = "embeddings/all-MiniLM-L6-v2",model_kwargs = {'dev
return st return st
def loadCopysAndData(pathsqlite="motor.sqlite"): def loadCopysAndData(pathsqlite="/opt/web2py/applications/MotorAngela/databases/storage.sqlite"):
con = sqlite3.connect(pathsqlite) con = sqlite3.connect(pathsqlite)
copies_df = pd.read_sql_query("SELECT * from copies WHERE intentionality IS NOT NULL", con) copies_df = pd.read_sql_query("SELECT * from copies WHERE intentionality IS NOT NULL", con)
copiesT = copies_df copiesT = copies_df