productizationlabs commited on
Commit
8b0ee3a
·
1 Parent(s): 7ab0b3d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def predict_chatgpt(inputs,chat_counter_chatgpt,chatbot_chatgpt=[],history=[]):
12
  E=[]
13
  for K in chatbot_chatgpt:F={};F[I]=M;F[J]=K[0];G={};G[I]='assistant';G[J]=K[1];E.append(F);E.append(G)
14
  H={};H[I]=M;H[J]=C;E.append(H)
15
- D+=1;A.append('You asked: '+C);N=GPTSimpleVectorIndex.load_from_disk('PLIndex.json');O=N.query(C);P=O.response.split();L=0;B='';S=0
16
  for Q in P:
17
  B=B+' '+Q
18
  if L==0:A.append(' '+B)
 
12
  E=[]
13
  for K in chatbot_chatgpt:F={};F[I]=M;F[J]=K[0];G={};G[I]='assistant';G[J]=K[1];E.append(F);E.append(G)
14
  H={};H[I]=M;H[J]=C;E.append(H)
15
+ D+=1;A.append('You asked: '+C);N=GPTSimpleVectorIndex.load_from_disk('IPCIndex.json');O=N.query(C);P=O.response.split();L=0;B='';S=0
16
  for Q in P:
17
  B=B+' '+Q
18
  if L==0:A.append(' '+B)