Spaces:
Runtime error
Runtime error
Upload api\hello.py with huggingface_hub
Browse files- 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 |
+
}
|