I set up sharing in the Gradio I created in Hugging Face Spaces, but it doesn’t work

It has been set up in app.py ximod1a/whisper at main
demo.queue(max_size=10).launch(server_name="", server_port=7860, share=True)

Running on local URL:
/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py:1965: UserWarning: Setting share=True is not supported on Hugging Face Spaces

To create a public link, set `share=True` in `launch()`.


from gradio_client import Client

client = Client("https://ximod1a-whisper.hf.space/--replicas/r7tgj/")
result = client.predict(
		"./Gradio_eng.wav",	# filepath  in 'audio' Audio component
Loaded as API: https://ximod1a-whisper.hf.space/--replicas/r7tgj/ ✔
KeyError                                  Traceback (most recent call last)
<ipython-input-34-615c6f8fc132> in <cell line: 4>()
      3 client = Client("https://ximod1a-whisper.hf.space/--replicas/r7tgj/")
----> 4 result = client.predict(
      5                 "./Gradio_eng.wav",     # filepath  in 'audio' Audio component
      6                                                         api_name="/predict"

13 frames
/usr/local/lib/python3.10/dist-packages/gradio_client/utils.py in msg_to_status(msg)
    126     def msg_to_status(msg: str) -> Status:
    127         """Map the raw message from the backend to the status code presented to users."""
--> 128         return {
    129             "send_hash": Status.JOINING_QUEUE,
    130             "queue_full": Status.QUEUE_FULL,

KeyError: 'heartbeat'

How should I share my own spaces?