Spaces:
Running
Running
Update app_main.py
Browse files- app_main.py +6 -6
app_main.py
CHANGED
@@ -574,17 +574,17 @@ def process_pdf():
|
|
574 |
|
575 |
# Extract & process
|
576 |
json_path = None
|
577 |
-
|
578 |
-
|
579 |
|
580 |
-
project_output = similarity_matching(output_path)
|
581 |
logger.info("Received request to process PDF.")
|
582 |
|
583 |
return jsonify({
|
584 |
"message": "✅ PDF processed successfully",
|
585 |
-
"output_json": output_path,
|
586 |
-
"sprites": result,
|
587 |
-
"project_output_json": project_output,
|
588 |
"test_url":r"https://prthm11-scratch-vision-game.hf.space/download_sb3/cat_jumping"
|
589 |
})
|
590 |
except Exception as e:
|
|
|
574 |
|
575 |
# Extract & process
|
576 |
json_path = None
|
577 |
+
#0output_path, result = extract_images_from_pdf(
|
578 |
+
# saved_pdf_path, json_path)
|
579 |
|
580 |
+
#project_output = similarity_matching(output_path)
|
581 |
logger.info("Received request to process PDF.")
|
582 |
|
583 |
return jsonify({
|
584 |
"message": "✅ PDF processed successfully",
|
585 |
+
"output_json": "output_path",
|
586 |
+
"sprites": "result",
|
587 |
+
"project_output_json": "project_output",
|
588 |
"test_url":r"https://prthm11-scratch-vision-game.hf.space/download_sb3/cat_jumping"
|
589 |
})
|
590 |
except Exception as e:
|