X-iZhang commited on
Commit
213781c
·
verified ·
1 Parent(s): ca5d05c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -14,7 +14,7 @@ def setup_cpu_environment():
14
 
15
  setup_cpu_environment()
16
 
17
- from RadEval import RadEval
18
 
19
  def run_radeval_simple(ref_text, hyp_text, selected_metrics):
20
  """
@@ -263,9 +263,7 @@ def run_hypothesis_testing(systems_data, selected_test_metrics, n_samples, signi
263
  """
264
  Run statistical significance testing between multiple systems
265
  """
266
- try:
267
- from RadEval import RadEval, compare_systems
268
-
269
  # Parse systems data (expecting JSON format)
270
  import json
271
  systems_dict = json.loads(systems_data)
 
14
 
15
  setup_cpu_environment()
16
 
17
+ from RadEval import RadEval, compare_systems
18
 
19
  def run_radeval_simple(ref_text, hyp_text, selected_metrics):
20
  """
 
263
  """
264
  Run statistical significance testing between multiple systems
265
  """
266
+ try:
 
 
267
  # Parse systems data (expecting JSON format)
268
  import json
269
  systems_dict = json.loads(systems_data)