Spaces:
Running
Running
app20
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ image_gradio_app = gr.Interface(
|
|
47 |
|
48 |
# Cell 2: Chatbot Model
|
49 |
|
50 |
-
loader =
|
51 |
data=loader.load()
|
52 |
# split documents
|
53 |
text_splitter = RecursiveCharacterTextSplitter(
|
@@ -83,8 +83,8 @@ Your name is AngryGreta and you are a recycling chatbot with the objective to an
|
|
83 |
Use the following pieces of context to answer the question /
|
84 |
If the question is English answer in English /
|
85 |
If the question is Spanish answer in Spanish /
|
86 |
-
Do not mention the word context when you answer a question
|
87 |
-
Answer the question fully and provide as much relevant detail as possible. Do not cut your response short
|
88 |
Context: {context}
|
89 |
User: {question}
|
90 |
{format_instructions}
|
|
|
47 |
|
48 |
# Cell 2: Chatbot Model
|
49 |
|
50 |
+
loader = WebBaseLoader(["https://www.epa.gov/recycle/frequent-questions-recycling", "https://www.whitehorsedc.gov.uk/vale-of-white-horse-district-council/recycling-rubbish-and-waste/lets-get-real-about-recycling/", "https://www.teimas.com/blog/13-preguntas-y-respuestas-sobre-la-ley-de-residuos-07-2022", "https://www.molok.com/es/blog/gestion-de-residuos-solidos-urbanos-rsu-10-dudas-comunes"])
|
51 |
data=loader.load()
|
52 |
# split documents
|
53 |
text_splitter = RecursiveCharacterTextSplitter(
|
|
|
83 |
Use the following pieces of context to answer the question /
|
84 |
If the question is English answer in English /
|
85 |
If the question is Spanish answer in Spanish /
|
86 |
+
Do not mention the word context when you answer a question /
|
87 |
+
Answer the question fully and provide as much relevant detail as possible. Do not cut your response short /
|
88 |
Context: {context}
|
89 |
User: {question}
|
90 |
{format_instructions}
|