simonl0909 commited on
Commit
2f7fd62
1 Parent(s): 14d0df8

trying it again

Browse files
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
 
@@ -9,7 +9,7 @@ with gr.Blocks() as ui:
9
  p = gr.State(None)
10
  def update_payload():
11
  return webhook_payload.json() if webhook_payload is not None else ''
12
- gr.Markdown(f"## Hugging Face Webhooks Demo\n\n{p}")
13
  progress = gr.Progress(track_tqdm=True)
14
  ui.load(update_payload, outputs=[p])
15
 
 
1
  import gradio as gr
2
  from huggingface_hub import WebhooksServer, WebhookPayload
3
 
4
+ # from model import model
5
 
6
  webhook_payload = None
7
 
 
9
  p = gr.State(None)
10
  def update_payload():
11
  return webhook_payload.json() if webhook_payload is not None else ''
12
+ gr.Markdown(f"## Hugging Face Webhooks Demo\n\n{p.value}")
13
  progress = gr.Progress(track_tqdm=True)
14
  ui.load(update_payload, outputs=[p])
15