redfernstech commited on
Commit
832aaea
·
verified ·
1 Parent(s): 26fe4df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ from sentence_transformers import SentenceTransformer
31
  import re
32
  GOOGLE_API_KEY= os.getenv("HF_TOKEN")
33
  warnings.filterwarnings("ignore")
34
- model = ChatGoogleGenerativeAI(model="gemini-2.0-flash-experimental",google_api_key=GOOGLE_API_KEY,
35
  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."
36
  )
37
  pdf_loader = PyPDFLoader("data/ITCGrandChola.pdf")
 
31
  import re
32
  GOOGLE_API_KEY= os.getenv("HF_TOKEN")
33
  warnings.filterwarnings("ignore")
34
+ model = ChatGoogleGenerativeAI(model="gemini-pro",google_api_key=GOOGLE_API_KEY,
35
  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."
36
  )
37
  pdf_loader = PyPDFLoader("data/ITCGrandChola.pdf")