akseljoonas HF Staff commited on
Commit
d4d8709
·
verified ·
1 Parent(s): ceb1c7f

Fix: Update deprecated APIs, fix metadata, and dependencies

Browse files

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

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

- Fixed `colorFrom: grey` to `colorFrom: gray` (valid HF metadata value)
- Updated `sdk_version` from `3.28.3` 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 +2 -2
  2. app.py +1 -1
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
  title: BigCode - Playground
3
  emoji: 🪐
4
- colorFrom: grey
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 3.28.3
8
  app_file: app.py
9
  pinned: false
10
  ---
 
1
  ---
2
  title: BigCode - Playground
3
  emoji: 🪐
4
+ colorFrom: gray
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 5.29.1
8
  app_file: app.py
9
  pinned: false
10
  ---
app.py CHANGED
@@ -268,4 +268,4 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
268
  outputs=[output],
269
  )
270
  share_button.click(None, [], [], _js=share_js)
271
- demo.queue(concurrency_count=16).launch(debug=True)
 
268
  outputs=[output],
269
  )
270
  share_button.click(None, [], [], _js=share_js)
271
+ demo.queue().launch(debug=True)