Update app.py
Browse files
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
|
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']}"
|