johnpaulbin commited on
Commit
2c6b6c7
1 Parent(s): 8ef2116

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ def load_json_data(file_path):
26
  json_data = load_json_data('englishspanishpairs.json')
27
 
28
  @app.route('/spanish')
29
- def random_spanish_pair():
30
  # Select a random English-Spanish pair
31
  random_pair = random.choice(json_data)
32
  return jsonify(random_pair)
@@ -62,7 +62,7 @@ def get_distractors(target_word, all_words, num_distractors=3):
62
  return list(distractors)
63
 
64
  @app.route('/fillgame')
65
- def random_spanish_pair():
66
  # Select a random English-Spanish pair
67
  random_pair = random.choice(json_data)
68
 
 
26
  json_data = load_json_data('englishspanishpairs.json')
27
 
28
  @app.route('/spanish')
29
+ def random_spanish_pair1():
30
  # Select a random English-Spanish pair
31
  random_pair = random.choice(json_data)
32
  return jsonify(random_pair)
 
62
  return list(distractors)
63
 
64
  @app.route('/fillgame')
65
+ def random_spanish_pair2():
66
  # Select a random English-Spanish pair
67
  random_pair = random.choice(json_data)
68