Spaces:
Runtime error
Runtime error
Update app.py
Browse files106 unmodified lines10710810911011111211311411511611737 unmodified lines155156157153154155156158159160161162163106 unmodified lines flash('No files selected for processing') logging.warning("No files selected for processing") return redirect(url_for('index')) BASE_DIR = 'uploads/'
# Joining the base and the requested path #file_paths = os.path.join(BASE_DIR, filename)
file_paths = [os.path.join(app.config['UPLOAD_FOLDER'], filename) for filename in uploaded_files] logging.info(f"Processing files: {file_paths}")37 unmodified lines session['processed_Img'] = processed_Img flash('Data processed and analyzed successfully') logging.info("Data processed and analyzed successfully") return jsonify( 'process_data':[processed_data], 'process_image': processed_Img ) return jsonify({'process_data': [processed_data], 'process_image': processed_Img })
@app.route('/result')def result():app.py+8-4