Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,8 @@ import re
|
|
30 |
GOOGLE_API_KEY= os.getenv("HF_TOKEN")
|
31 |
warnings.filterwarnings("ignore")
|
32 |
model = ChatGoogleGenerativeAI(model="gemini-pro",google_api_key=GOOGLE_API_KEY,
|
33 |
-
temperature=0.2,convert_system_message_to_human=True
|
|
|
34 |
pdf_loader = PyPDFLoader("data/ITCGrandChola.pdf")
|
35 |
pages = pdf_loader.load_and_split()
|
36 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=10000, chunk_overlap=1000)
|
|
|
30 |
GOOGLE_API_KEY= os.getenv("HF_TOKEN")
|
31 |
warnings.filterwarnings("ignore")
|
32 |
model = ChatGoogleGenerativeAI(model="gemini-pro",google_api_key=GOOGLE_API_KEY,
|
33 |
+
temperature=0.2,convert_system_message_to_human=True,system_message="You are the Hotel voice chatbot and your name is Hotel Helper. Your goal is to provide accurate, professional, and helpful answers to user queries based on the hotel's data. Always ensure your responses are clear and concise. Give response within 10-15 words only. Respond in the same language as the user's query."
|
34 |
+
)
|
35 |
pdf_loader = PyPDFLoader("data/ITCGrandChola.pdf")
|
36 |
pages = pdf_loader.load_and_split()
|
37 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=10000, chunk_overlap=1000)
|