awacke1 commited on
Commit
a76170c
·
1 Parent(s): 6481f63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ async def take_last_tokens(inputs, note_history, history):
77
  history = history[1:]
78
  return inputs, note_history, history
79
 
80
- async def add_note_to_history(note, note_history):
81
  """Add a note to the historical information"""
82
  note_history.append(note)
83
  note_history = '</s> <s>'.join(note_history)
 
77
  history = history[1:]
78
  return inputs, note_history, history
79
 
80
+ def add_note_to_history(note, note_history):# good example of non async since we wait around til we know it went okay.
81
  """Add a note to the historical information"""
82
  note_history.append(note)
83
  note_history = '</s> <s>'.join(note_history)