ysharma HF Staff commited on
Commit
914e928
·
1 Parent(s): b708555
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -26,8 +26,9 @@ from langchain.tools import AIPluginTool
26
  # Example system message : system = SystemMessage(content = "You are a helpful AI assistant")
27
 
28
  # driver
29
- def predict_old(user_input, chatbot):
30
 
 
31
  chat = ChatOpenAI(temperature=1.0, streaming=True, model='gpt-3.5-turbo-0613')
32
  messages=[]
33
 
@@ -43,7 +44,7 @@ def predict_old(user_input, chatbot):
43
  gpt_response = chat(messages)
44
  return gpt_response.content
45
 
46
- def predict(inputs, chatbot):
47
 
48
  print(f"Chatbot : {chatbot}")
49
  messages = []
 
26
  # Example system message : system = SystemMessage(content = "You are a helpful AI assistant")
27
 
28
  # driver
29
+ def predict(user_input, chatbot):
30
 
31
+ print(f"Chatbot : {chatbot}")
32
  chat = ChatOpenAI(temperature=1.0, streaming=True, model='gpt-3.5-turbo-0613')
33
  messages=[]
34
 
 
44
  gpt_response = chat(messages)
45
  return gpt_response.content
46
 
47
+ def predict_stream(inputs, chatbot):
48
 
49
  print(f"Chatbot : {chatbot}")
50
  messages = []