MK-316 commited on
Commit
09aa674
1 Parent(s): 1798aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,9 +49,9 @@ def generate_speech(t1, level, t2, x, y, t3, audio_option, t4, all_pos, noun, ve
49
  else:
50
  for _, row in filtered_df.iterrows():
51
  # Adjust the sentence based on the audio_option
52
- if audio_option == "Audio without number":
53
  sentence = f"{row['WORD']} is {row['POS']}"
54
- elif audio_option == "Audio with number":
55
  sentence = f"{row['SID']}. {row['WORD']}. {row['WORD']} is {row['POS']}"
56
  else: # "Word only"
57
  sentence = f"{row['WORD']}"
 
49
  else:
50
  for _, row in filtered_df.iterrows():
51
  # Adjust the sentence based on the audio_option
52
+ if audio_option == "Audio with POS":
53
  sentence = f"{row['WORD']} is {row['POS']}"
54
+ elif audio_option == "Audio with number/POS":
55
  sentence = f"{row['SID']}. {row['WORD']}. {row['WORD']} is {row['POS']}"
56
  else: # "Word only"
57
  sentence = f"{row['WORD']}"