Spaces:
Runtime error
Runtime error
update space
Browse files
app.py
CHANGED
@@ -1,17 +1,7 @@
|
|
1 |
import os
|
2 |
-
import time
|
3 |
import importlib.metadata
|
4 |
from os import getcwd, path, environ
|
5 |
import deepdoctection as dd
|
6 |
-
from deepdoctection.dataflow.serialize import DataFromList
|
7 |
-
from dd_addons.extern import PdfTextDetector, PostProcessor, get_xsl_path
|
8 |
-
from dd_addons.pipe.conn import PostProcessorService
|
9 |
-
|
10 |
-
import gradio as gr
|
11 |
-
from botocore.config import Config
|
12 |
-
from dotenv import load_dotenv
|
13 |
-
|
14 |
-
load_dotenv()
|
15 |
|
16 |
|
17 |
def check_additional_requirements():
|
@@ -28,6 +18,17 @@ def check_additional_requirements():
|
|
28 |
|
29 |
|
30 |
check_additional_requirements()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
# work around: https://discuss.huggingface.co/t/how-to-install-a-specific-version-of-gradio-in-spaces/13552
|
32 |
_DD_ONE = "conf_dd_one.yaml"
|
33 |
_XSL_PATH = get_xsl_path()
|
|
|
1 |
import os
|
|
|
2 |
import importlib.metadata
|
3 |
from os import getcwd, path, environ
|
4 |
import deepdoctection as dd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
|
7 |
def check_additional_requirements():
|
|
|
18 |
|
19 |
|
20 |
check_additional_requirements()
|
21 |
+
|
22 |
+
from deepdoctection.dataflow.serialize import DataFromList
|
23 |
+
import time
|
24 |
+
from dd_addons.extern import PdfTextDetector, PostProcessor, get_xsl_path
|
25 |
+
from dd_addons.pipe.conn import PostProcessorService
|
26 |
+
import gradio as gr
|
27 |
+
from botocore.config import Config
|
28 |
+
from dotenv import load_dotenv
|
29 |
+
|
30 |
+
load_dotenv()
|
31 |
+
|
32 |
# work around: https://discuss.huggingface.co/t/how-to-install-a-specific-version-of-gradio-in-spaces/13552
|
33 |
_DD_ONE = "conf_dd_one.yaml"
|
34 |
_XSL_PATH = get_xsl_path()
|