Fix: Update deprecated APIs and dependencies

#2158
by akseljoonas HF Staff - opened
Files changed (2) hide show
  1. README.md +2 -1
  2. app.py +1 -1
README.md CHANGED
@@ -4,7 +4,8 @@ emoji: πŸ‹οΈ #πŸ‘•πŸŒŸ
4
  colorFrom: red
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 3.45.1
 
8
  app_file: app.py
9
  license: mit
10
  disable_embedding: true
 
4
  colorFrom: red
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 5.29.1
8
+ python_version: "3.12"
9
  app_file: app.py
10
  license: mit
11
  disable_embedding: true
app.py CHANGED
@@ -405,5 +405,5 @@ with gr.Blocks(css=css) as block_with_history:
405
  with gr.Tab("Past generations"):
406
  user_history.render()
407
 
408
- block_with_history.queue(concurrency_count=3, max_size=10, api_open=False).launch(show_api=False)
409
  #block_with_history.launch(server_name="0.0.0.0")
 
405
  with gr.Tab("Past generations"):
406
  user_history.render()
407
 
408
+ block_with_history.queue( max_size=10, api_open=False).launch(show_api=False)
409
  #block_with_history.launch(server_name="0.0.0.0")