sabazo commited on
Commit
55450d7
1 Parent(s): 0794e40

without streaming output

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -37,11 +37,8 @@ def add_text(history, text):
37
 
38
  def bot(history):
39
  response = infer(history[-1][0])
40
- history[-1][1] = ""
41
- for character in response['result']:
42
- history[-1][1] += character
43
- time.sleep(0.05)
44
- yield history
45
 
46
  def infer(question):
47
 
 
37
 
38
  def bot(history):
39
  response = infer(history[-1][0])
40
+ history[-1][1] = response['result']
41
+ return history
 
 
 
42
 
43
  def infer(question):
44