Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -854,9 +854,7 @@ calculator = NutrientCalculator(INPUT_DATA)
|
|
| 854 |
results = calculator.calculate()
|
| 855 |
print(calculator.generate_report(results))
|
| 856 |
|
| 857 |
-
from flask import Flask, request, jsonify
|
| 858 |
|
| 859 |
-
app = Flask(__name__)
|
| 860 |
|
| 861 |
@app.route('/calculation', methods=['POST'])
|
| 862 |
def handle_calculation():
|
|
|
|
| 854 |
results = calculator.calculate()
|
| 855 |
print(calculator.generate_report(results))
|
| 856 |
|
|
|
|
| 857 |
|
|
|
|
| 858 |
|
| 859 |
@app.route('/calculation', methods=['POST'])
|
| 860 |
def handle_calculation():
|