Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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)
|