akseljoonas commited on
Commit
6b9cde4
·
verified ·
1 Parent(s): bce882a

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.15.0` 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: red
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 3.15.0
8
  python_version: 3.8.3
9
  app_file: app.py
10
  pinned: true
 
4
  colorFrom: red
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 5.29.1
8
  python_version: 3.8.3
9
  app_file: app.py
10
  pinned: true
app.py CHANGED
@@ -345,5 +345,5 @@ with gr.Blocks(css="style.css") as demo:
345
  print(f"Space built in {time.time() - start_time:.2f} seconds")
346
 
347
  # if not is_colab:
348
- demo.queue(concurrency_count=1)
349
  demo.launch(debug=is_colab, share=is_colab)
 
345
  print(f"Space built in {time.time() - start_time:.2f} seconds")
346
 
347
  # if not is_colab:
348
+ demo.queue()
349
  demo.launch(debug=is_colab, share=is_colab)