Commit
·
fe2ecb7
1
Parent(s):
e04518b
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,12 @@ par.appendChild(text);
|
|
| 29 |
document.body.appendChild(par);
|
| 30 |
"""
|
| 31 |
|
| 32 |
-
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
if agree == True:
|
| 34 |
if use_mic == True:
|
| 35 |
if mic_file_path is not None:
|
|
|
|
| 29 |
document.body.appendChild(par);
|
| 30 |
"""
|
| 31 |
|
| 32 |
+
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree, request: Request):
|
| 33 |
+
try:
|
| 34 |
+
print(request)
|
| 35 |
+
print(request.headers)
|
| 36 |
+
except Exception as e:
|
| 37 |
+
print(e)
|
| 38 |
if agree == True:
|
| 39 |
if use_mic == True:
|
| 40 |
if mic_file_path is not None:
|