V2 new model with text nlp
This commit is contained in:
parent
55df233473
commit
74b63c7b65
4
main.py
4
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
|
||||
|
|
Loading…
Reference in New Issue