muhammadshaheryar commited on
Commit
3eee3e7
·
verified ·
1 Parent(s): be18c21

Upload api\hello.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. api//hello.py +14 -0
api//hello.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+
3
+ def handler(request):
4
+ return {
5
+ "statusCode": 200,
6
+ "headers": {
7
+ "Content-Type": "application/json"
8
+ },
9
+ "body": json.dumps({
10
+ "message": "Hello from Vercel!",
11
+ "status": "working",
12
+ "note": "This proves the API routes are functional"
13
+ })
14
+ }