Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def demo_process(input_pdf):
|
|
25 |
|
26 |
# zip_path = "images.zip"
|
27 |
# image_path = os.path.join(temp_dir, image_name)
|
28 |
-
output = model.inference(image=image_name prompt=task_prompt)["predictions"][0]
|
29 |
# with zipfile.ZipFile(zip_path, "w") as zipf:
|
30 |
# zipf.write(os.path.join(temp_dir, image_name), image_name)
|
31 |
|
|
|
25 |
|
26 |
# zip_path = "images.zip"
|
27 |
# image_path = os.path.join(temp_dir, image_name)
|
28 |
+
output = model.inference(image=image_name, prompt=task_prompt)["predictions"][0]
|
29 |
# with zipfile.ZipFile(zip_path, "w") as zipf:
|
30 |
# zipf.write(os.path.join(temp_dir, image_name), image_name)
|
31 |
|