Fix broken Space: Update dependencies and Gradio 4 compatibility

#257
by akseljoonas HF Staff - opened
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +1 -1
README.md CHANGED
@@ -4,8 +4,8 @@ emoji: 🐢
4
  colorFrom: gray
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 3.27.0
8
- python_version: 3.8.15
9
  app_file: app.py
10
  pinned: false
11
  license: cc-by-nc-4.0
 
4
  colorFrom: gray
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 5.29.0
8
+ python_version: "3.10"
9
  app_file: app.py
10
  pinned: false
11
  license: cc-by-nc-4.0
app.py CHANGED
@@ -183,7 +183,7 @@ with gr.Blocks(css=css) as block:
183
  loading_icon = gr.HTML(loading_icon_html)
184
  share_button = gr.Button(
185
  "Share to community", elem_id="share-btn")
186
- share_button.click(None, [], [], _js=share_js)
187
  inputs = [input_text, options]
188
  outputs = [audio_out]
189
  gr.Examples(examples=examples, fn=gen_tts, inputs=inputs,
 
183
  loading_icon = gr.HTML(loading_icon_html)
184
  share_button = gr.Button(
185
  "Share to community", elem_id="share-btn")
186
+ share_button.click(None, [], [], js=share_js)
187
  inputs = [input_text, options]
188
  outputs = [audio_out]
189
  gr.Examples(examples=examples, fn=gen_tts, inputs=inputs,