Mudassir939 commited on
Commit
96e9f29
·
verified ·
1 Parent(s): b6e536e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -88,12 +88,10 @@ def generate_api():
88
 
89
  options = {'option 1': 1,'option 2': 2};
90
 
91
- for (let option in options) {
92
- if (result_text.includes(option)) {
93
- selectedOption = options[option];
94
- break; // Exit the loop once the option is found
95
- }
96
- }
97
 
98
  # Return the transcription and selected option
99
  return jsonify({
 
88
 
89
  options = {'option 1': 1,'option 2': 2};
90
 
91
+ for option in options:
92
+ if option in result_text:
93
+ selected_option = options[option]
94
+ break
 
 
95
 
96
  # Return the transcription and selected option
97
  return jsonify({