Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- Dockerfile +16 -0
- requirements.txt +4 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM huggingface/transformers-pytorch-gpu
|
| 2 |
+
|
| 3 |
+
# Install Tesseract
|
| 4 |
+
RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-hin tesseract-ocr-eng
|
| 5 |
+
|
| 6 |
+
# Set the working directory
|
| 7 |
+
WORKDIR /app
|
| 8 |
+
|
| 9 |
+
# Copy your application files
|
| 10 |
+
COPY . .
|
| 11 |
+
|
| 12 |
+
# Install Python dependencies
|
| 13 |
+
RUN pip install -r requirements.txt
|
| 14 |
+
|
| 15 |
+
# Set the command to run your app
|
| 16 |
+
CMD ["streamlit", "run", "app.py"]
|
requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pytesseract
|
| 2 |
+
Pillow
|
| 3 |
+
gradio
|
| 4 |
+
streamlit
|