simonl0909 commited on
Commit
14d0df8
1 Parent(s): 85cff44
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
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,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.load(), webhook_secret="test")
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):