INNER CODE UNIT · Python
loadApiKey
speaches-ai/speaches · src/speaches/ui/app.py:26
function loadApiKey() {
try {
return localStorage.getItem(API_KEY_STORAGE_KEY) || '';
} catch (e) {
console.error('Failed to load API key from localStorage:', e);
return '';
}
}
</script>
""",
) as demo:
gr.Markdown("# Speaches Playground")
gr.Markdown(
"### Consider supporting the project by starring the [speaches-ai/speaches repository on GitHub](https://github.com/speaches-ai/speaches)."
)
gr.Markdown("### Documentation Website: https://speaches.ai")
gr.Markdown(
"### For additional details regarding the parameters, see the [API Documentation](https://speaches.ai/api)"