Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import deepdoctection as dd
|
|
6 |
from deepdoctection.extern.model import ModelProfile
|
7 |
from deepdoctection.analyzer.dd import build_analyzer, _auto_select_lib_and_device, _maybe_copy_config_to_cache
|
8 |
from deepdoctection.utils.metacfg import set_config_by_yaml
|
|
|
9 |
|
10 |
import gradio as gr
|
11 |
|
@@ -56,7 +57,7 @@ def analyze_image(img):
|
|
56 |
image = dd.Image(file_name="input.png", location="")
|
57 |
image.image = img[:,:,::-1]
|
58 |
|
59 |
-
df =
|
60 |
|
61 |
analyzer = get_space_dd_analyzer()
|
62 |
|
|
|
6 |
from deepdoctection.extern.model import ModelProfile
|
7 |
from deepdoctection.analyzer.dd import build_analyzer, _auto_select_lib_and_device, _maybe_copy_config_to_cache
|
8 |
from deepdoctection.utils.metacfg import set_config_by_yaml
|
9 |
+
from deepdoctection.dataflow import DataFromList
|
10 |
|
11 |
import gradio as gr
|
12 |
|
|
|
57 |
image = dd.Image(file_name="input.png", location="")
|
58 |
image.image = img[:,:,::-1]
|
59 |
|
60 |
+
df = DataFromList(lst=[image])
|
61 |
|
62 |
analyzer = get_space_dd_analyzer()
|
63 |
|