Spaces:
Runtime error
Runtime error
simonl0909
commited on
Commit
•
14d0df8
1
Parent(s):
85cff44
oops
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import WebhooksServer, WebhookPayload
|
3 |
|
4 |
-
|
5 |
|
6 |
webhook_payload = None
|
7 |
|
@@ -14,7 +14,7 @@ with gr.Blocks() as ui:
|
|
14 |
ui.load(update_payload, outputs=[p])
|
15 |
|
16 |
# 2. Create WebhooksServer with custom UI and secret
|
17 |
-
app = WebhooksServer(ui=ui
|
18 |
|
19 |
@app.add_webhook
|
20 |
async def train(payload: WebhookPayload):
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import WebhooksServer, WebhookPayload
|
3 |
|
4 |
+
from model import model
|
5 |
|
6 |
webhook_payload = None
|
7 |
|
|
|
14 |
ui.load(update_payload, outputs=[p])
|
15 |
|
16 |
# 2. Create WebhooksServer with custom UI and secret
|
17 |
+
app = WebhooksServer(ui=ui, webhook_secret="test")
|
18 |
|
19 |
@app.add_webhook
|
20 |
async def train(payload: WebhookPayload):
|