Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .streamlit/config.toml +4 -0
- Dockerfile +1 -1
- app.py +1 -1
.streamlit/config.toml
CHANGED
|
@@ -1,2 +1,6 @@
|
|
| 1 |
[server]
|
| 2 |
maxUploadSize = 10000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[server]
|
| 2 |
maxUploadSize = 10000
|
| 3 |
+
enableCORS = false
|
| 4 |
+
enableXsrfProtection = false
|
| 5 |
+
address = "0.0.0.0"
|
| 6 |
+
port = 7860
|
Dockerfile
CHANGED
|
@@ -6,4 +6,4 @@ COPY requirements.txt .
|
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
COPY . .
|
| 8 |
EXPOSE 7860
|
| 9 |
-
CMD ["streamlit", "run", "app.py"
|
|
|
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
COPY . .
|
| 8 |
EXPOSE 7860
|
| 9 |
+
CMD ["streamlit", "run", "app.py"]
|
app.py
CHANGED
|
@@ -29,7 +29,7 @@ api_key = "AQ.Ab8RN6K7DUqbPAcdRwV1Y-xYSH4qZOwvnUsmi1330DwbiWVSOg"
|
|
| 29 |
# Cache die Modelle, damit sie nur bei Bedarf und nur einmal geladen werden
|
| 30 |
@st.cache_resource
|
| 31 |
def get_paddle_ocr():
|
| 32 |
-
return PaddleOCR(use_angle_cls=True, lang='de'
|
| 33 |
|
| 34 |
@st.cache_resource
|
| 35 |
def get_trocr():
|
|
|
|
| 29 |
# Cache die Modelle, damit sie nur bei Bedarf und nur einmal geladen werden
|
| 30 |
@st.cache_resource
|
| 31 |
def get_paddle_ocr():
|
| 32 |
+
return PaddleOCR(use_angle_cls=True, lang='de')
|
| 33 |
|
| 34 |
@st.cache_resource
|
| 35 |
def get_trocr():
|