ZoniaChatbot commited on
Commit
9d9ed2d
1 Parent(s): 82a25ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  from loguru import logger
6
  from similarities import BertSimilarity, BM25Similarity
7
 
8
- from chatpdf import ChatPDF
9
 
10
  pwd_path = os.path.abspath(os.path.dirname(__file__))
11
 
@@ -31,7 +31,7 @@ if __name__ == '__main__':
31
 
32
  # Inicializar el modelo
33
  sim_model = BertSimilarity(model_name_or_path=args.sim_model_name, device=args.device)
34
- model = ChatPDF(
35
  similarity_model=sim_model,
36
  generate_model_type=args.gen_model_type,
37
  generate_model_name_or_path=args.gen_model_name,
 
5
  from loguru import logger
6
  from similarities import BertSimilarity, BM25Similarity
7
 
8
+ from chatpdf import Rag
9
 
10
  pwd_path = os.path.abspath(os.path.dirname(__file__))
11
 
 
31
 
32
  # Inicializar el modelo
33
  sim_model = BertSimilarity(model_name_or_path=args.sim_model_name, device=args.device)
34
+ model = Rag(
35
  similarity_model=sim_model,
36
  generate_model_type=args.gen_model_type,
37
  generate_model_name_or_path=args.gen_model_name,