I am trying to test the hugging face's prithivida/parrot_paraphraser_on_T5 model but getting token not found error.
from parrot import Parrot
import torch
import warnings
warnings.filterwarnings("ignore")
parrot = Parrot(model_tag="prithivida/parrot_paraphraser_on_T5", use_gpu=False)
Run Code Online (Sandbox Code Playgroud)
The error I am getting
OSError Traceback (most recent call last)
Cell In [10], line 2
1 #Init models (make sure you init ONLY once if you integrate this to your code)
----> 2 parrot = Parrot(model_tag="prithivida/parrot_paraphraser_on_T5", use_gpu=False)
File ~/.local/lib/python3.10/site-packages/parrot/parrot.py:10, in Parrot.__init__(self, model_tag, use_gpu)
8 from parrot.filters import Fluency
9 from …Run Code Online (Sandbox Code Playgroud) 我有一个 python 脚本,它在文本文件中生成输出。我构建了一个 docker 映像来运行该脚本。运行该映像时,它成功完成,但我看不到输出文本文件。
我的 Docker 文件是
From python:2.7
LABEL maintainer="ABC"
LABEL description="This Dockerfile creates MTA image"
WORKDIR /Temp
ADD script_v1.py connect.txt /Temp/
RUN pip install pexpect
CMD [ "python", "/Temp/script_v1.py" ]
Run Code Online (Sandbox Code Playgroud)
在 script_v1 脚本中,我提到了 /Temp 位置来生成输出
sys.stdout=open("/Temp/EXPORT_OP.txt","w")
Run Code Online (Sandbox Code Playgroud)
我正在 Linux 容器模式下从 Windows docker 主机运行图像。