From 74b63c7b65dc182c3e0ed72c9937038ab54ea6cc Mon Sep 17 00:00:00 2001 From: Mario Gonzalez Gil Date: Mon, 27 Nov 2023 18:47:46 +0100 Subject: [PATCH] V2 new model with text nlp --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index fdcad57..cfee0b4 100644 --- a/main.py +++ b/main.py @@ -25,7 +25,7 @@ from typing import Optional #from cleantext import clean import re 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 -def loadCopysAndData(pathsqlite="motor.sqlite"): +def loadCopysAndData(pathsqlite="/opt/web2py/applications/MotorAngela/databases/storage.sqlite"): con = sqlite3.connect(pathsqlite) copies_df = pd.read_sql_query("SELECT * from copies WHERE intentionality IS NOT NULL", con) copiesT = copies_df