Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,12 +88,10 @@ def generate_api():
|
|
88 |
|
89 |
options = {'option 1': 1,'option 2': 2};
|
90 |
|
91 |
-
for
|
92 |
-
|
93 |
-
|
94 |
-
|
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({
|