Spaces:
Runtime error
Runtime error
File size: 392 Bytes
695eff8 e059d15 54ad4a5 695eff8 e059d15 695eff8 e059d15 54ad4a5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import importlib
import subprocess
import sys
import evaluate
from evaluate.utils import launch_gradio_widget
# hotfix: somehow codebleu is not installed in the docker image
subprocess.run([sys.executable, "-m", "pip", "install", "codebleu"], check=True)
globals()["codebleu"] = importlib.import_module("codebleu")
module = evaluate.load("k4black/codebleu")
launch_gradio_widget(module)
|