Spaces:
Runtime error
Runtime error
add .decode method
Browse files
app.py
CHANGED
@@ -98,10 +98,12 @@ def find_orgs(uploaded_file):
|
|
98 |
print(uploaded_file)
|
99 |
try:
|
100 |
print('inside try')
|
|
|
101 |
uploaded_data = json.load(uploaded_file)
|
102 |
|
103 |
except:
|
104 |
print('inside except')
|
|
|
105 |
uploaded_data = json.loads(uploaded_file)
|
106 |
|
107 |
return get_metrics_trf(uploaded_file)
|
|
|
98 |
print(uploaded_file)
|
99 |
try:
|
100 |
print('inside try')
|
101 |
+
print(uploaded_file.decode())
|
102 |
uploaded_data = json.load(uploaded_file)
|
103 |
|
104 |
except:
|
105 |
print('inside except')
|
106 |
+
print(uploaded_file.decode())
|
107 |
uploaded_data = json.loads(uploaded_file)
|
108 |
|
109 |
return get_metrics_trf(uploaded_file)
|