williamufpr commited on
Commit ·
655be6a
1
Parent(s): 1f36883
💚 Add app_port
Browse files- README.md +1 -0
- README.txt +3 -6
README.md
CHANGED
|
@@ -4,5 +4,6 @@ emoji: 🚀
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 8080
|
| 8 |
pinned: false
|
| 9 |
---
|
README.txt
CHANGED
|
@@ -4,6 +4,7 @@ emoji: 📄
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
## Introdução
|
|
@@ -43,7 +44,7 @@ app/
|
|
| 43 |
|
| 44 |
Pre-requisitos de sistema: `ffmpeg` e `tesseract-ocr` com o idioma portugues (`tesseract-ocr-por`).
|
| 45 |
|
| 46 |
-
|
| 47 |
# Ubuntu/Debian
|
| 48 |
sudo apt install ffmpeg tesseract-ocr tesseract-ocr-por
|
| 49 |
|
|
@@ -52,23 +53,19 @@ pip install -r requirements.txt
|
|
| 52 |
cp .env.example .env
|
| 53 |
|
| 54 |
uvicorn app.main:app --reload
|
| 55 |
-
```
|
| 56 |
|
| 57 |
Testando:
|
| 58 |
|
| 59 |
-
```bash
|
| 60 |
curl -F "file=@documento.pdf" http://localhost:8000/extract-text
|
| 61 |
curl -F "file=@audio.opus" http://localhost:8000/transcribe
|
| 62 |
-
```
|
| 63 |
|
| 64 |
Docs interativas em `http://localhost:8000/docs`.
|
| 65 |
|
| 66 |
## Docker
|
| 67 |
|
| 68 |
-
|
| 69 |
docker build -t extracao-transcricao .
|
| 70 |
docker run -p 8000:8000 extracao-transcricao
|
| 71 |
-
```
|
| 72 |
|
| 73 |
## As duas decisoes que ficaram para depois
|
| 74 |
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
+
app_port:
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
## Introdução
|
|
|
|
| 44 |
|
| 45 |
Pre-requisitos de sistema: `ffmpeg` e `tesseract-ocr` com o idioma portugues (`tesseract-ocr-por`).
|
| 46 |
|
| 47 |
+
|
| 48 |
# Ubuntu/Debian
|
| 49 |
sudo apt install ffmpeg tesseract-ocr tesseract-ocr-por
|
| 50 |
|
|
|
|
| 53 |
cp .env.example .env
|
| 54 |
|
| 55 |
uvicorn app.main:app --reload
|
|
|
|
| 56 |
|
| 57 |
Testando:
|
| 58 |
|
|
|
|
| 59 |
curl -F "file=@documento.pdf" http://localhost:8000/extract-text
|
| 60 |
curl -F "file=@audio.opus" http://localhost:8000/transcribe
|
|
|
|
| 61 |
|
| 62 |
Docs interativas em `http://localhost:8000/docs`.
|
| 63 |
|
| 64 |
## Docker
|
| 65 |
|
| 66 |
+
|
| 67 |
docker build -t extracao-transcricao .
|
| 68 |
docker run -p 8000:8000 extracao-transcricao
|
|
|
|
| 69 |
|
| 70 |
## As duas decisoes que ficaram para depois
|
| 71 |
|