It has been set up in app.py
ximod1a/whisper at main
demo.queue(max_size=10).launch(server_name="0.0.0.0", server_port=7860, share=True)
Logs:
Running on local URL: http://0.0.0.0:7860
/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py:1965: UserWarning: Setting share=True is not supported on Hugging Face Spaces
warnings.warn(
To create a public link, set `share=True` in `launch()`.
colad:
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
api_name="/predict"
)
print(result)
Loaded as API: https://ximod1a-whisper.hf.space/--replicas/r7tgj/ ✔
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-34-615c6f8fc132> in <cell line: 4>()
2
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?