johnpaulbin commited on
Commit
84342a4
1 Parent(s): 4ce2779

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def handle_transcription(username):
20
  transcriptions.setdefault(username, []).append(new_word)
21
 
22
  # Remove the 20th last word if more than 20 words are present
23
- if len(transcriptions[username]) > 3:
24
  transcriptions[username].pop(0)
25
 
26
  # Join the words to form the updated transcription
 
20
  transcriptions.setdefault(username, []).append(new_word)
21
 
22
  # Remove the 20th last word if more than 20 words are present
23
+ if len(transcriptions[username]) > 1:
24
  transcriptions[username].pop(0)
25
 
26
  # Join the words to form the updated transcription