Braddy commited on
Commit
461ce47
1 Parent(s): d68f453

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,17 +51,17 @@ def bot(history):
51
  response = infer(history[-1][0])
52
  history[-1][1] = ""
53
 
54
- for character in response:
55
  history[-1][1] += character
56
  time.sleep(0.05)
 
57
  yield history
58
 
59
 
60
  def infer(question):
61
 
62
  result = chain.run(text=question).strip()
63
- print(result)
64
- return result+ "123"
65
 
66
 
67
  css = """
 
51
  response = infer(history[-1][0])
52
  history[-1][1] = ""
53
 
54
+ for character in response:
55
  history[-1][1] += character
56
  time.sleep(0.05)
57
+ print(history)
58
  yield history
59
 
60
 
61
  def infer(question):
62
 
63
  result = chain.run(text=question).strip()
64
+ return result
 
65
 
66
 
67
  css = """