Skip to content

Commit 154916a

Browse files
Fix /start, pip req
1 parent e74bdb4 commit 154916a

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

.github/workflows/CD.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,19 @@ jobs:
77
docker:
88
runs-on: ubuntu-latest
99
steps:
10-
-
11-
name: Checkout
10+
- name: Checkout
1211
uses: actions/checkout@v2
13-
-
14-
name: Docker meta
12+
- name: Docker meta
1513
id: meta
1614
uses: docker/metadata-action@v3
1715
with:
1816
images: dofe71/hsetelebotbocharovegor
19-
-
20-
name: Login to DockerHub
17+
- name: Login to DockerHub
2118
uses: docker/login-action@v1
2219
with:
2320
username: ${{ secrets.DOCKER_USERNAME }}
2421
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
25-
-
26-
name: Build and push
22+
- name: Build and push
2723
uses: docker/build-push-action@v2
2824
with:
2925
push: true

.github/workflows/CI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
steps:
3939
- name: Checkout code
4040
uses: actions/checkout@v2
41-
4241
- name: Create Release
4342
id: create_release
4443
uses: actions/create-release@v1

bot/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ RUN apt-get update && apt-get install -y tesseract-ocr-all
88
RUN apt-get update && apt-get install -y python3
99
RUN apt-get update && apt-get install -y python3-pip
1010
RUN python3 -m pip install --upgrade pip
11-
RUN pip3 install Pillow
1211

1312
COPY requirements.txt ./
1413
RUN pip3 install --no-cache-dir -r requirements.txt

bot/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def get_text_from_image(path):
2121
logging.info("image opened")
2222
return pytesseract.image_to_string(img, lang="rus+eng", timeout=30)
2323

24-
2524
def echo_photo(update: Update, context: CallbackContext) -> None:
2625
print(update.message.photo)
2726
lst = update.message.photo
@@ -46,7 +45,7 @@ def echo_no_photo(update: Update, context: CallbackContext) -> None:
4645

4746

4847
def help(update: Update, context: CallbackContext) -> None:
49-
update.message.reply_text("Пришлите фотографию, текст с которой вам нужен")
48+
update.message.reply_text("Пришлите изображение с которого Вам нужен текст")
5049

5150

5251
def main():

bot/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
Pillow
12
pytesseract
23
python-telegram-bot

0 commit comments

Comments
 (0)