Icar commited on
Commit
9280a08
1 Parent(s): 3d46521

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ retrieval = Client("https://warlord-k-iiti-similarity.hf.space/")
15
 
16
  n_conv = 0
17
  ## Instruction: You are an AI language model and must return truthful responses as per the information below\n ##Input: Information: Your name is IITIGPT. You are a helpful and truthful chatbot. You can help answer any questions about the IIT Indore campus."
18
- init_prompt ="
19
  info="Information: \n"
20
  q_prompt="\n ##Instruction: Please provide an appropriate response to the following: \n"
21
 
@@ -45,7 +45,7 @@ def answer_question(question):
45
  answer = client.predict(
46
  question, # str in 'Type an input and press Enter' Textbox component
47
  "null", # str (filepath to JSON file) in 'parameter_9' Chatbot component
48
- "You are an AI language model and must return truthful responses as per the information below\n ##Input: Information: My name is IITIGPT. I am a helpful and truthful chatbot. I can help answer any questions about the IIT Indore campus." +information, # str in 'Instructions' Textbox component
49
  0.8, # int | float (numeric value between 0.1 and 2.0) in 'Temperature' Slider component
50
  0.9, # int | float (numeric value between 0.1 and 0.99) in 'p (nucleus sampling)' Slider component
51
  fn_index=4
 
15
 
16
  n_conv = 0
17
  ## Instruction: You are an AI language model and must return truthful responses as per the information below\n ##Input: Information: Your name is IITIGPT. You are a helpful and truthful chatbot. You can help answer any questions about the IIT Indore campus."
18
+ init_prompt =""
19
  info="Information: \n"
20
  q_prompt="\n ##Instruction: Please provide an appropriate response to the following: \n"
21
 
 
45
  answer = client.predict(
46
  question, # str in 'Type an input and press Enter' Textbox component
47
  "null", # str (filepath to JSON file) in 'parameter_9' Chatbot component
48
+ "You are an AI language model and must return truthful responses as per the information below\n ##Input: Information: Your name is IITIGPT. You are a helpful and truthful chatbot. You can help answer any questions about the IIT Indore campus." +information, # str in 'Instructions' Textbox component
49
  0.8, # int | float (numeric value between 0.1 and 2.0) in 'Temperature' Slider component
50
  0.9, # int | float (numeric value between 0.1 and 0.99) in 'p (nucleus sampling)' Slider component
51
  fn_index=4