Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorflow version #5

Open
Palipoor opened this issue Oct 27, 2020 · 1 comment
Open

Tensorflow version #5

Palipoor opened this issue Oct 27, 2020 · 1 comment

Comments

@Palipoor
Copy link

Hi! Can you please release a version compatible with newer TensorFlow?
Thanks!

@127
Copy link

127 commented Jul 28, 2021

Use docker image — much easier.
build -t tfsense . && docker run --rm -ti tfsense sh

The image

FROM python:3.7-buster
RUN mkdir -p /app/models
COPY ./requirements.txt /app/
WORKDIR /app

RUN pip install -r requirements.txt
RUN pip install https://files.pythonhosted.org/packages/04/9f/18e031f52c46b4c63f6a6f064cd2dd85a2f730ca5dc44ef2f25375990dce/tensorflow-1.15.4-cp37-cp37m-manylinux2010_x86_64.whl

RUN apt-get install -y apt-transport-https ca-certificates gnupg
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http:https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg  add - && apt-get update -y && apt-get install google-cloud-sdk -y
# RUN gsutil -m cp -r gs:https://ai21-public-models/sensebert-base-uncased /app/models/
# RUN gsutil -m cp -r gs:https://ai21-public-models/sensebert-large-uncased /app/models/
RUN apt-get install -y vim git
COPY . /app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants