felfri commited on
Commit
285cfc5
·
verified ·
1 Parent(s): f1df46f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -181,13 +181,13 @@ class AIEvaluationForm:
181
  return sources
182
 
183
  def load_uploaded_json(file):
184
- if file is None:
185
- return {}
186
- try:
187
- with open(file.name, 'r') as f:
188
- return json.load(f)
189
- except Exception as e:
190
- return {"error": str(e)}
191
 
192
 
193
  def generate_scorecard(self, *args) -> Tuple[Dict, str]:
 
181
  return sources
182
 
183
  def load_uploaded_json(file):
184
+ if file is None:
185
+ return {}
186
+ try:
187
+ with open(file.name, 'r') as f:
188
+ return json.load(f)
189
+ except Exception as e:
190
+ return {"error": str(e)}
191
 
192
 
193
  def generate_scorecard(self, *args) -> Tuple[Dict, str]: