my_gradio / js /_website /src /lib /components /FunctionsSection.svelte
xray918's picture
Upload folder using huggingface_hub
0ad74ed verified
raw
history blame contribute delete
521 Bytes
<script lang="ts">
import EventListeners from "$lib/components/EventListeners.svelte";
import FunctionDoc from "$lib/components/FunctionDoc.svelte";
export let fns = [] as any[];
export let event_listeners = false;
</script>
{#if event_listeners}
{#if fns && fns.length > 0}
<div class="flex flex-col pl-12">
<EventListeners {fns} />
<div class="ml-12" />
</div>
{/if}
{:else}
<div class="flex flex-col pl-12">
{#each fns as fn}
<FunctionDoc {fn} />
{/each}
<div class="ml-12" />
</div>
{/if}