Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,6 @@ import streamlit as st
|
|
2 |
import getpass
|
3 |
import os
|
4 |
|
5 |
-
os.environ["OPENAI_API_KEY"] = st.secrets['OPENAI_API_KEY'] # agregada en la config de hugginface
|
6 |
-
|
7 |
from langchain.prompts import PromptTemplate
|
8 |
from langchain.chains.llm import LLMChain
|
9 |
from langchain.chains.combine_documents.stuff import StuffDocumentsChain
|
@@ -14,6 +12,10 @@ from langchain_community.vectorstores import FAISS
|
|
14 |
from langchain_community.document_loaders import HuggingFaceDatasetLoader
|
15 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
16 |
|
|
|
|
|
|
|
|
|
17 |
st.markdown("<h1 style='text-align: center; color: yellow;'>Chatbot SII</h1>", unsafe_allow_html=True)
|
18 |
#Embeddings que transforman a vectores densos multidimensionales las preguntas del SII
|
19 |
embeddings = HuggingFaceEmbeddings(
|
|
|
2 |
import getpass
|
3 |
import os
|
4 |
|
|
|
|
|
5 |
from langchain.prompts import PromptTemplate
|
6 |
from langchain.chains.llm import LLMChain
|
7 |
from langchain.chains.combine_documents.stuff import StuffDocumentsChain
|
|
|
12 |
from langchain_community.document_loaders import HuggingFaceDatasetLoader
|
13 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
14 |
|
15 |
+
from .modelo import test
|
16 |
+
test()
|
17 |
+
os.environ["OPENAI_API_KEY"] = st.secrets['OPENAI_API_KEY'] # agregada en la config de hugginface
|
18 |
+
|
19 |
st.markdown("<h1 style='text-align: center; color: yellow;'>Chatbot SII</h1>", unsafe_allow_html=True)
|
20 |
#Embeddings que transforman a vectores densos multidimensionales las preguntas del SII
|
21 |
embeddings = HuggingFaceEmbeddings(
|