Compare commits

..

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

3 changed files with 2 additions and 17 deletions

View File

@ -1 +1,2 @@
# python hello-world # 553ff12cc0c645b1884bce8db1c9c8a0

14
main.py
View File

@ -1,14 +0,0 @@
def main(request):
# Parse the input from the request (assumes JSON input)
request_json = request.get_json(silent=True)
if not request_json or 'num1' not in request_json or 'num2' not in request_json:
return "Please provide 'num1' and 'num2' in the request JSON"
try:
# Extract numbers from the request
num1 = float(request_json['num1'])
num2 = float(request_json['num2'])
result = num1 + num2
return {"result": result}
except ValueError:
return "Please provide valid numbers"

View File

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