Spaces:
Running
Running
debug
Browse files
server.py
CHANGED
@@ -2,6 +2,8 @@ import copy
|
|
2 |
import glob
|
3 |
import json
|
4 |
import os
|
|
|
|
|
5 |
os.environ['CURL_CA_BUNDLE'] = ''
|
6 |
os.environ['REQUESTS_CA_BUNDLE'] = ''
|
7 |
import hashlib
|
@@ -81,6 +83,7 @@ def check_significance_wait_for_result(result_url):
|
|
81 |
else:
|
82 |
raise RuntimeError(f'Failed to get result. Status code: {response.status_code}') # TODO: try-except do raise gr.error
|
83 |
|
|
|
84 |
return result['result']
|
85 |
|
86 |
def check_significance(model_a_path, model_b_path):
|
|
|
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
|
|
|
83 |
else:
|
84 |
raise RuntimeError(f'Failed to get result. Status code: {response.status_code}') # TODO: try-except do raise gr.error
|
85 |
|
86 |
+
print(result)
|
87 |
return result['result']
|
88 |
|
89 |
def check_significance(model_a_path, model_b_path):
|