Icar commited on
Commit
ebecdfe
1 Parent(s): d108b0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -33,16 +33,15 @@ def answer_question(question):
33
  # n_conv = 0
34
  # change_conv(chatbot)
35
  information = retrieval.predict(question, api_name = "/predict")
36
- chat_client.predict(
37
  "Howdy!",
38
- "abc.json",
39
-
40
  "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+question, # str in 'Type an input and press Enter' Textbox component
41
  0.8,
42
  0.9,
43
- fn_index=1
44
  )
45
- answer=chat_client.predict(fn_index=2)
46
 
47
  n_conv+=1
48
  return answer
 
33
  # n_conv = 0
34
  # change_conv(chatbot)
35
  information = retrieval.predict(question, api_name = "/predict")
36
+ answer=chat_client.predict(
37
  "Howdy!",
38
+ "abc.json",
 
39
  "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+question, # str in 'Type an input and press Enter' Textbox component
40
  0.8,
41
  0.9,
42
+ fn_index=4
43
  )
44
+
45
 
46
  n_conv+=1
47
  return answer