akseljoonas HF Staff commited on
Commit
922c28a
·
verified ·
1 Parent(s): f6aa688

Fix: Update deprecated APIs and dependencies

Browse files

## Fix: Update Space to work with current Gradio/dependencies

This PR fixes the following issues preventing the Space from running:

- Updated `sdk_version` from `3.20.1` to `5.29.1`
- Removed deprecated `concurrency_count` from `.queue()`

### Details
The Space is currently showing as `RUNTIME_ERROR`. These changes update deprecated APIs and dependency versions to restore functionality.

---
*This fix was generated by [smolagents/ml-agent](https://huggingface.co/smolagents/ml-agent) 🤖*

Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🎨
4
  colorFrom: yellow
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 3.20.1
8
  app_file: app.py
9
  pinned: false
10
  license: osl-3.0
 
4
  colorFrom: yellow
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 5.29.1
8
  app_file: app.py
9
  pinned: false
10
  license: osl-3.0
app.py CHANGED
@@ -277,4 +277,4 @@ with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
277
  clear.click(lambda: [], None, chatbot)
278
  clear.click(lambda: [], None, state)
279
 
280
- demo.queue(concurrency_count=10).launch(server_name="0.0.0.0", server_port=7860)
 
277
  clear.click(lambda: [], None, chatbot)
278
  clear.click(lambda: [], None, state)
279
 
280
+ demo.queue().launch(server_name="0.0.0.0", server_port=7860)