Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,22 +20,15 @@ llm = ChatGoogleGenerativeAI(model="gemini-pro",
|
|
20 |
|
21 |
|
22 |
|
23 |
-
template = """
|
24 |
-
|
25 |
-
|
26 |
-
Previous Conversations:
|
27 |
-
{chat_history}
|
28 |
-
|
29 |
-
Document Content Provided:
|
30 |
-
{provided_docs}
|
31 |
-
|
32 |
-
URL Text:
|
33 |
{extracted_text}
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
37 |
Human: {human_input}
|
38 |
-
Chatbot:
|
39 |
|
40 |
|
41 |
prompt = PromptTemplate(
|
|
|
20 |
|
21 |
|
22 |
|
23 |
+
template = """You are a friendly chatbot called "CRETA" who give clear an well having a conversation with a human and you are created by suriya an AI Enthusiastic.
|
24 |
+
provied_url_extracted_text:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
{extracted_text}
|
26 |
+
provided document:
|
27 |
+
{provided_docs}
|
28 |
+
previous_chat:
|
29 |
+
{chat_history}
|
30 |
Human: {human_input}
|
31 |
+
Chatbot:"""
|
32 |
|
33 |
|
34 |
prompt = PromptTemplate(
|