GitHub Actions commited on
Commit
b8ff2a8
·
1 Parent(s): 3892fc6

Sync from GitHub repo

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -288,9 +288,9 @@ def verify_turnstile():
288
 
289
  with open("sentences.txt", "r") as f, open("emotional_sentences.txt", "r") as f_emotional:
290
  # Store all sentences and clean them up
291
- all_sentences = [line.strip() for line in f.readlines() if line.strip()] + [line.strip() for line in f_emotional.readlines() if line.strip()]
292
  # Shuffle for initial random selection if needed, but main list remains ordered
293
- initial_sentences = random.sample(all_sentences, min(len(all_sentences), 500)) # Limit initial pass for template
294
 
295
  @app.route("/")
296
  def arena():
 
288
 
289
  with open("sentences.txt", "r") as f, open("emotional_sentences.txt", "r") as f_emotional:
290
  # Store all sentences and clean them up
291
+ all_harvard_sentences = [line.strip() for line in f.readlines() if line.strip()] + [line.strip() for line in f_emotional.readlines() if line.strip()]
292
  # Shuffle for initial random selection if needed, but main list remains ordered
293
+ initial_sentences = random.sample(all_harvard_sentences, min(len(all_harvard_sentences), 500)) # Limit initial pass for template
294
 
295
  @app.route("/")
296
  def arena():