Remove unnecessary code, and address WolframAlpha interfacing issue.
Browse files
app.py
CHANGED
|
@@ -102,6 +102,11 @@ def transcribe(aud_inp, whisper_lang):
|
|
| 102 |
result_text = result.text
|
| 103 |
return result_text
|
| 104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
# TEMPORARY FOR TESTING
|
| 106 |
def transcribe_dummy(aud_inp_tb, whisper_lang):
|
| 107 |
if aud_inp_tb is None:
|
|
|
|
| 102 |
result_text = result.text
|
| 103 |
return result_text
|
| 104 |
|
| 105 |
+
|
| 106 |
+
# Temporarily address Wolfram Alpha SSL certificate issue
|
| 107 |
+
ssl._create_default_https_context = ssl._create_unverified_context
|
| 108 |
+
|
| 109 |
+
|
| 110 |
# TEMPORARY FOR TESTING
|
| 111 |
def transcribe_dummy(aud_inp_tb, whisper_lang):
|
| 112 |
if aud_inp_tb is None:
|