github-actions commited on
Commit
e059d15
·
1 Parent(s): 5c3c11c

Auto files update [main]

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,5 +1,11 @@
 
 
 
1
  import evaluate
2
  from evaluate.utils import launch_gradio_widget
3
 
 
 
 
4
  module = evaluate.load("k4black/codebleu")
5
  launch_gradio_widget(module)
 
1
+ import subprocess
2
+ import sys
3
+
4
  import evaluate
5
  from evaluate.utils import launch_gradio_widget
6
 
7
+ # hotfix: somehow codebleu is not installed in the docker image
8
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "codebleu"])
9
+
10
  module = evaluate.load("k4black/codebleu")
11
  launch_gradio_widget(module)