Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,15 +21,21 @@ llm = ChatGoogleGenerativeAI(model="gemini-pro",
|
|
21 |
|
22 |
|
23 |
|
24 |
-
template = """You are a friendly chatbot
|
25 |
-
|
|
|
26 |
{extracted_text}
|
27 |
-
|
|
|
28 |
{provided_docs}
|
29 |
-
|
|
|
30 |
{chat_history}
|
|
|
31 |
Human: {human_input}
|
32 |
-
Chatbot:
|
|
|
|
|
33 |
|
34 |
prompt = PromptTemplate(
|
35 |
input_variables=["chat_history", "human_input", "provided_docs"], template=template
|
|
|
21 |
|
22 |
|
23 |
|
24 |
+
template = """You are "CRETA," a friendly chatbot developed by Suriya, an AI enthusiast. Your role is to engage in clear and informative conversations with users, providing helpful responses based on the information extracted from URLs, documents, and previous chat interactions.
|
25 |
+
|
26 |
+
Extracted URL text:
|
27 |
{extracted_text}
|
28 |
+
|
29 |
+
Provided document:
|
30 |
{provided_docs}
|
31 |
+
|
32 |
+
Chat history:
|
33 |
{chat_history}
|
34 |
+
|
35 |
Human: {human_input}
|
36 |
+
Chatbot: Sure, I can help with that! [Your response here, followed by a friendly follow-up question or comment to continue the conversation.]
|
37 |
+
"""
|
38 |
+
|
39 |
|
40 |
prompt = PromptTemplate(
|
41 |
input_variables=["chat_history", "human_input", "provided_docs"], template=template
|