lvwerra HF staff commited on
Commit
fb3b4a5
1 Parent(s): 9cdf854

Update Space (evaluate main: 706e08bb)

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,11 @@
 
 
1
  import evaluate
2
  from evaluate.utils import launch_gradio_widget
3
 
4
 
 
5
  module = evaluate.load("sacrebleu")
 
 
6
  launch_gradio_widget(module)
 
1
+ import sys
2
+
3
  import evaluate
4
  from evaluate.utils import launch_gradio_widget
5
 
6
 
7
+ sys.path = [p for p in sys.path if p != "/home/user/app"]
8
  module = evaluate.load("sacrebleu")
9
+ sys.path = ["/home/user/app"] + sys.path
10
+
11
  launch_gradio_widget(module)