Spaces:
Runtime error
Runtime error
Update app.py
Browse files106 unmodified lines10710810911011111237 unmodified lines150151152153154155156157158159106 unmodified linesflash('No files selected for processing')logging.warning("No files selected for processing")return redirect(url_for('index'))file_paths = [os.path.join(app.config['UPLOAD_FOLDER'], filename) for filename in uploaded_files]logging.info(f"Processing files: {file_paths}")37 unmodified linessession['processed_Img'] = processed_Imgflash('Data processed and analyzed successfully')logging.info("Data processed and analyzed successfully")return jsonify('process_data':[processed_data],'process_image': processed_Img)@app.route('/result')def result():106 unmodified lines10710810911011111211311411511611737 unmodified lines155156157158159160161162163106 unmodified linesflash('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 linessession['processed_Img'] = processed_Imgflash('Data processed and analyzed successfully')logging.info("Data processed and analyzed successfully")return jsonify({'process_data': [processed_data],'process_image': processed_Img})@app.route('/result')def result():
app.py+8-4