Hugging face spaces restarting
If a space is sleeping due to inactivity and if i call the space via API, will this call via API will trigger the restart automatically?Thank you for your help, would be nice if you can send me some sources to it?
2024-03-21T14:53:26Z
i think you can have a test by yourself, with anyone else’s sleeping spaces.
2024-03-21T15:26:54Z
i would try it on my own but i have an issue here and get an error?from gradio_client import Client

client = Client("akinki1995/catch-me-if-you-can", REDACTED_TOKEN="hf_***")
result = client.predict(
		"Hello!!",	# str in 'Input Sentence' Textbox component
		api_name="/predict"
)
print(result)grafik1025×454 80.7 KB
2024-03-22T01:37:18Z
maybe you can have another try on a non-sleeping space, if it worked, then the result will be clear by contrast.
2024-03-22T11:27:24Z
on non sleeping space, the spaces are automatically build. I think this goes same for sleeping spaces, right? The api call automatically triggers a restart?
2024-03-22T14:20:32Z
thank you for your help, best regards
2024-03-23T02:21:30Z
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.