Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
inference-widgets
/
packages
/widgets
/src
/lib
/components
/InferenceWidget
/shared
/WidgetState
/WidgetState.svelte
| <script lang="ts"> | |
| export let currentState: "error" | "loaded" | "unknown" | undefined; | |
| </script> | |
| <div class="blankslate"> | |
| <div class="subtitle text-xs text-gray-500"> | |
| <div class="loaded mt-2 {currentState !== 'loaded' ? 'hidden' : ''}"> | |
| This model is currently loaded and running on the Inference API. | |
| </div> | |
| <div class="error mt-2 {currentState !== 'error' ? 'hidden' : ''}"> | |
| ⚠️ This model could not be loaded by the inference API. ⚠️ | |
| </div> | |
| <div class="unknown mt-2 {currentState !== 'unknown' ? 'hidden' : ''}"> | |
| This model can be loaded on the Inference API on-demand. | |
| </div> | |
| </div> | |
| </div> | |