elshehawy commited on
Commit
b094a6f
Β·
1 Parent(s): c9f9a75

add .decode method

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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)