Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ def analyze_image(img, pdf, attributes):
|
|
177 |
df = DataFromList(lst=[image])
|
178 |
df = analyzer.analyze(dataset_dataflow=df)
|
179 |
elif pdf:
|
180 |
-
df = analyzer.analyze(path=pdf.name, max_datapoints=3)
|
181 |
else:
|
182 |
raise ValueError
|
183 |
|
|
|
177 |
df = DataFromList(lst=[image])
|
178 |
df = analyzer.analyze(dataset_dataflow=df)
|
179 |
elif pdf:
|
180 |
+
df = analyzer.analyze(path=pdf.name, max_datapoints=3, output="image")
|
181 |
else:
|
182 |
raise ValueError
|
183 |
|