diff --git a/docs/tutorials/remote_evaluation.rst b/docs/tutorials/remote_evaluation.rst index 77f7d197..535afa3a 100644 --- a/docs/tutorials/remote_evaluation.rst +++ b/docs/tutorials/remote_evaluation.rst @@ -10,7 +10,7 @@ For instance, with the agent in :ref:`first-agent`, .. code-block:: bash - > simuleval --standalone --remote-port 8888 --agent first_agent.py.py + > simuleval --standalone --remote-port 8888 --agent first_agent.py 2022-12-06 19:12:26 | INFO | simuleval.cli | Evaluate system: DummyWaitkTextAgent 2022-12-06 19:12:26 | INFO | simuleval.agent_server | Simultaneous Translation Server Started (process id 53902). Listening to port 8888 diff --git a/examples/quick_start/Dockerfile b/examples/quick_start/Dockerfile index bcb545ab..b53e9a70 100644 --- a/examples/quick_start/Dockerfile +++ b/examples/quick_start/Dockerfile @@ -1,10 +1,10 @@ FROM python:3.8 RUN apt-get update \ -&& apt-get upgrade -y \ -&& apt-get install -y \ -&& apt-get -y install apt-utils gcc libpq-dev libsndfile-dev + && apt-get upgrade -y \ + && apt-get install -y \ + && apt-get -y install apt-utils gcc libpq-dev libsndfile-dev RUN git clone https://github.com/facebookresearch/SimulEval.git WORKDIR SimulEval RUN git checkout v1.1.0 RUN pip install -e . -CMD ["simuleval", "--standalone", "--remote-port", "8888", "--agent", "examples/quick_start/first_agent.py.py"] +CMD ["simuleval", "--standalone", "--remote-port", "8888", "--agent", "examples/quick_start/first_agent.py"] diff --git a/simuleval/evaluator/remote.py b/simuleval/evaluator/remote.py index d73c8326..0683fe47 100644 --- a/simuleval/evaluator/remote.py +++ b/simuleval/evaluator/remote.py @@ -36,7 +36,7 @@ def results(self): return self.evaluator.results() def remote_eval(self): - for instance in self.evaluator.instance_iterator: + for instance in self.evaluator.iterator: self.system_reset() while not instance.finish_prediction: self.send_source(instance.send_source(self.source_segment_size))