Compare commits

..

No commits in common. "v6" and "main" have entirely different histories.
v6 ... main

3 changed files with 2 additions and 18 deletions

View File

@ -1 +1,2 @@
# python hello-world
# ab4401318d004f1e96659b51f95111bd

15
main.py
View File

@ -1,15 +0,0 @@
import json
def main(request):
try:
request_json = request.get_json(silent=True)
num1 = request_json.get('num1')
num2 = request_json.get('num2')
if num1 is None or num2 is None:
return "Missing 'num1' or 'num2'", 400
result = float(num1) + float(num2)
return json.dumps({"result": result}), 200
except Exception as e:
return f"Error: {str(e)}", 500

View File

@ -1,2 +0,0 @@
functions-framework==1.4.3
markupsafe==2.0.1