Spaces:
Runtime error
Runtime error
Try
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def process_submission(*inputs):
|
|
72 |
gr.update(visible=False),
|
73 |
gr.update(visible=False),
|
74 |
)
|
75 |
-
except TypeError as err:
|
76 |
gr.Warning(str(err))
|
77 |
return (
|
78 |
gr.update(value='Pre-submit model', visible=True, interactive=True),
|
|
|
72 |
gr.update(visible=False),
|
73 |
gr.update(visible=False),
|
74 |
)
|
75 |
+
except (TypeError, RuntimeError) as err:
|
76 |
gr.Warning(str(err))
|
77 |
return (
|
78 |
gr.update(value='Pre-submit model', visible=True, interactive=True),
|
server.py
CHANGED
@@ -2,10 +2,11 @@ import copy
|
|
2 |
import glob
|
3 |
import json
|
4 |
import os
|
|
|
|
|
|
|
5 |
print(f"{os.environ.get('CURL_CA_BUNDLE') = }")
|
6 |
print(f"{os.environ.get('REQUESTS_CA_BUNDLE') = }")
|
7 |
-
os.environ['CURL_CA_BUNDLE'] = ''
|
8 |
-
os.environ['REQUESTS_CA_BUNDLE'] = ''
|
9 |
import hashlib
|
10 |
import time
|
11 |
import requests
|
|
|
2 |
import glob
|
3 |
import json
|
4 |
import os
|
5 |
+
#os.environ['CURL_CA_BUNDLE'] = ''
|
6 |
+
#os.environ['REQUESTS_CA_BUNDLE'] = ''
|
7 |
+
os.environ["CURL_CA_BUNDLE"] = "/etc/ssl/certs/ca-certificates.crt"
|
8 |
print(f"{os.environ.get('CURL_CA_BUNDLE') = }")
|
9 |
print(f"{os.environ.get('REQUESTS_CA_BUNDLE') = }")
|
|
|
|
|
10 |
import hashlib
|
11 |
import time
|
12 |
import requests
|