<script lang="ts">
  export let body: Record<string, any>;
  export let res: Record<string, any>;
</script>

<div class="text-white p-6 font-code text-xs !leading-loose">
  {body.inputs ?? "No input provided"}
  {#if res?.[0]?.generated_text}
  <span>{res[0]?.generated_text?.replace(body?.inputs, "")}</span>
  {/if}
</div>