Spaces:
Sleeping
Sleeping
Update app_main.py
Browse files- app_main.py +4 -0
app_main.py
CHANGED
@@ -121,6 +121,10 @@ def extract_images_from_pdf(pdf_path, output_json_path):
|
|
121 |
print(f"✅ Manipulated sprite JSON saved: {final_json_path}")
|
122 |
return final_json_path, manipulated_json
|
123 |
|
|
|
|
|
|
|
|
|
124 |
# API endpoint
|
125 |
@app.route('/process_static_pdf', methods=['POST'])
|
126 |
def process_static_pdf():
|
|
|
121 |
print(f"✅ Manipulated sprite JSON saved: {final_json_path}")
|
122 |
return final_json_path, manipulated_json
|
123 |
|
124 |
+
@app.route('/')
|
125 |
+
def index():
|
126 |
+
return render_template('app_index.html')
|
127 |
+
|
128 |
# API endpoint
|
129 |
@app.route('/process_static_pdf', methods=['POST'])
|
130 |
def process_static_pdf():
|