lvwerra HF staff commited on
Commit
bd021be
1 Parent(s): 3980dde

Update Space (evaluate main: 30bf851a)

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1,6 +1,11 @@
 
 
1
  import evaluate
2
  from evaluate.utils import launch_gradio_widget
3
 
4
 
 
5
  module = evaluate.load("bleurt")
 
 
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("bleurt")
9
+ sys.path = ["/home/user/app"] + sys.path
10
+
11
  launch_gradio_widget(module)
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  # TODO: fix github to release
2
- git+https://github.com/huggingface/evaluate.git@b6e6ed7f3e6844b297bff1b43a1b4be0709b9671
3
  datasets~=2.0
4
  git+https://github.com/google-research/bleurt.git
 
1
  # TODO: fix github to release
2
+ git+https://github.com/huggingface/evaluate.git@505123230059f9605da8951880eddc9d1fbf4278
3
  datasets~=2.0
4
  git+https://github.com/google-research/bleurt.git