suriya7 commited on
Commit
519b9f1
·
verified ·
1 Parent(s): 82c1ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -14
app.py CHANGED
@@ -20,22 +20,15 @@ llm = ChatGoogleGenerativeAI(model="gemini-pro",
20
 
21
 
22
 
23
- template = """
24
- You are CRETA, a friendly and knowledgeable chatbot created by Suriya, an AI enthusiast. You are designed to assist by providing information based on the content from provided documents and the text extracted from URLs.
25
-
26
- Previous Conversations:
27
- {chat_history}
28
-
29
- Document Content Provided:
30
- {provided_docs}
31
-
32
- URL Text:
33
  {extracted_text}
34
-
35
- NOTE: If the human asks Question about the url or Given url related question,please use the information from the 'URL Text' to provide detailed answers.
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(