Pijush2023 commited on
Commit
ca13f6d
·
verified ·
1 Parent(s): e0d6c70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -348,7 +348,7 @@ def bot(history, choice, tts_choice, retrieval_mode, model_choice):
348
 
349
  phi_custom_template = """
350
  <|system|>
351
- You are a helpful assistant who provides clear, organized, and conversational responses.<|end|>
352
  <|user|>
353
  {context}
354
  Question: {question}<|end|>
@@ -444,7 +444,7 @@ def generate_answer(message, choice, retrieval_mode, selected_model):
444
  logging.debug(f"Generated Phi-3.5 prompt: {prompt}")
445
 
446
  response = selected_model(prompt, **{
447
- "max_new_tokens": 250,
448
  "return_full_text": True,
449
  "temperature": 0.7,
450
  "do_sample": True,
@@ -1018,7 +1018,7 @@ def format_hotel_info(name, link, location, rate_per_night, total_rate, descript
1018
  - Description: {description}
1019
  """
1020
 
1021
- def fetch_google_hotels(query="Birmingham Hotel", check_in=current_date1, check_out="2024-08-20", adults=2):
1022
  # Introductory prompt for hotels
1023
  intro_prompt = "Here are some of the best hotels in Birmingham, Alabama, for your stay. Each of these options offers a unique experience, whether you're looking for luxury, comfort, or convenience:"
1024
 
 
348
 
349
  phi_custom_template = """
350
  <|system|>
351
+ You are a helpful assistant who provides clear, organized, crisp and conversational responses about an events,concerts,sports and all other activities of Birmingham,Alabama .<|end|>
352
  <|user|>
353
  {context}
354
  Question: {question}<|end|>
 
444
  logging.debug(f"Generated Phi-3.5 prompt: {prompt}")
445
 
446
  response = selected_model(prompt, **{
447
+ "max_new_tokens": 400,
448
  "return_full_text": True,
449
  "temperature": 0.7,
450
  "do_sample": True,
 
1018
  - Description: {description}
1019
  """
1020
 
1021
+ def fetch_google_hotels(query="Birmingham Hotel", check_in=current_date1, check_out="2024-09-02", adults=2):
1022
  # Introductory prompt for hotels
1023
  intro_prompt = "Here are some of the best hotels in Birmingham, Alabama, for your stay. Each of these options offers a unique experience, whether you're looking for luxury, comfort, or convenience:"
1024