derek-thomas HF staff commited on
Commit
f0e56b8
1 Parent(s): f3c4357

Upgrading huggingface-hub to work with webhooks

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -1
app.py CHANGED
@@ -129,7 +129,7 @@ with gr.Blocks() as ui:
129
  with gr.Column():
130
  output_text = gr.Textbox(label="Output Text")
131
 
132
- app = WebhooksServer(ui=ui, webhook_secret=WEBHOOK_SECRET)
133
 
134
 
135
  @app.add_webhook("/community")
 
129
  with gr.Column():
130
  output_text = gr.Textbox(label="Output Text")
131
 
132
+ app = WebhooksServer(ui=ui.queue(), webhook_secret=WEBHOOK_SECRET)
133
 
134
 
135
  @app.add_webhook("/community")
requirements.txt CHANGED
@@ -9,4 +9,5 @@ rich==13.3.4
9
  supervisor==4.2.5
10
  schedule==1.2.0
11
  beautifulsoup4==4.12.2
12
- lxml==4.9.3
 
 
9
  supervisor==4.2.5
10
  schedule==1.2.0
11
  beautifulsoup4==4.12.2
12
+ lxml==4.9.3
13
+ huggingface-hub>=0.20