Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
|
@@ -1,7 +1,14 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
| 4 |
-
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
|
| 3 |
+
from huggingface_hub import webhook_endpoint, WebhookPayload
|
|
|
|
| 4 |
|
| 5 |
+
|
| 6 |
+
@webhook_endpoint
|
| 7 |
+
async def trigger_training(payload: WebhookPayload):
|
| 8 |
+
print("Triggering training job")
|
| 9 |
+
return {"message": "done running training job"}
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
async def doit():
|
| 13 |
+
return "doing it"
|
| 14 |
+
|