Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -966,7 +966,9 @@ def handle_calculation():
|
|
| 966 |
|
| 967 |
# Выполнение расчета
|
| 968 |
results = calculator.calculate()
|
| 969 |
-
|
|
|
|
|
|
|
| 970 |
|
| 971 |
except Exception as e:
|
| 972 |
return jsonify({'error': str(e)}), 500
|
|
@@ -981,7 +983,6 @@ def handle_calculation():
|
|
| 981 |
|
| 982 |
|
| 983 |
|
| 984 |
-
|
| 985 |
|
| 986 |
|
| 987 |
if __name__ == '__main__':
|
|
|
|
| 966 |
|
| 967 |
# Выполнение расчета
|
| 968 |
results = calculator.calculate()
|
| 969 |
+
|
| 970 |
+
# Возвращение результатов в нужном формате
|
| 971 |
+
return jsonify({"results": results})
|
| 972 |
|
| 973 |
except Exception as e:
|
| 974 |
return jsonify({'error': str(e)}), 500
|
|
|
|
| 983 |
|
| 984 |
|
| 985 |
|
|
|
|
| 986 |
|
| 987 |
|
| 988 |
if __name__ == '__main__':
|