Actualización del modelo / README / pesos / etc.
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#***************************************************************************
|
| 2 |
# Mori (tech-only) — Streamlit App sin sidebar ni social, con RAG opcional
|
| 3 |
#***************************************************************************
|
| 4 |
-
import os, sys, warnings, json, joblib, random, re, unicodedata, uuid, csv
|
| 5 |
import numpy as np
|
| 6 |
os.environ["TF_ENABLE_ONEDNN_OPTS"] = "0"
|
| 7 |
import streamlit as st
|
|
@@ -10,6 +10,8 @@ from pathlib import Path
|
|
| 10 |
import torch
|
| 11 |
import numpy as np
|
| 12 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForSequenceClassification
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# =========================
|
| 15 |
# Configuración general
|
|
|
|
| 1 |
#***************************************************************************
|
| 2 |
# Mori (tech-only) — Streamlit App sin sidebar ni social, con RAG opcional
|
| 3 |
#***************************************************************************
|
| 4 |
+
import os, sys, warnings, json, joblib, random, re, unicodedata, uuid, torch, csv
|
| 5 |
import numpy as np
|
| 6 |
os.environ["TF_ENABLE_ONEDNN_OPTS"] = "0"
|
| 7 |
import streamlit as st
|
|
|
|
| 10 |
import torch
|
| 11 |
import numpy as np
|
| 12 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForSequenceClassification
|
| 13 |
+
from huggingface_hub import hf_hub_download
|
| 14 |
+
from sentence_transformers import SentenceTransformer # RAG embeddings
|
| 15 |
|
| 16 |
# =========================
|
| 17 |
# Configuración general
|