29/10/2023
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ from langchain.llms import OpenAI, HuggingFaceHub
|
|
23 |
from langchain.chains.question_answering import load_qa_chain
|
24 |
#from htmlTemplates import css, bot_template, user_template
|
25 |
|
26 |
-
|
27 |
#from langchain.schema.vectorstore import Document
|
28 |
from langchain.schema import Document
|
29 |
#import fitz # PyMuPDF
|
@@ -308,7 +308,7 @@ def load(query):
|
|
308 |
|
309 |
with gr.Blocks() as demo:
|
310 |
txt = gr.Textbox(label="Pregunta", lines=2)
|
311 |
-
btn = gr.Button(value="
|
312 |
txt_2 = gr.Textbox(value="", label="Donde:")
|
313 |
txt_3 = gr.Textbox(value="", label="Cuales:")
|
314 |
txt_1 = gr.Textbox(value="", label="Respuesta IA:")
|
|
|
23 |
from langchain.chains.question_answering import load_qa_chain
|
24 |
#from htmlTemplates import css, bot_template, user_template
|
25 |
|
26 |
+
import ast
|
27 |
#from langchain.schema.vectorstore import Document
|
28 |
from langchain.schema import Document
|
29 |
#import fitz # PyMuPDF
|
|
|
308 |
|
309 |
with gr.Blocks() as demo:
|
310 |
txt = gr.Textbox(label="Pregunta", lines=2)
|
311 |
+
btn = gr.Button(value="Buscar")
|
312 |
txt_2 = gr.Textbox(value="", label="Donde:")
|
313 |
txt_3 = gr.Textbox(value="", label="Cuales:")
|
314 |
txt_1 = gr.Textbox(value="", label="Respuesta IA:")
|