File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
lib/InferenceWidget/shared/WidgetOutputText Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 11<script >
22 export let classNames: string;
33 export let output: string;
4-
5- $: isCode = output? .includes (" \n " );
64 </script >
75
86{#if output .length }
9- {#if isCode}
10- < pre class = " alert alert-success overflow-auto {classNames}" >
11- {output}
12- < / pre>
13- {: else }
14- < p class = " alert alert-success {classNames}" >
15- {output}
16- < / p>
17- {/ if }
7+ <p class ="alert alert-success {classNames }" >
8+ {output }
9+ </p >
1810{/if }
Original file line number Diff line number Diff line change 7575 { text: " Once upon a time," },
7676 ],
7777 },
78- {
79- id: " huggingface-course/codeparrot-ds" ,
80- pipeline_tag: " text-generation" ,
81- widgetData: [{ text: " plt.imshow(" }],
82- },
8378 {
8479 id: " distilroberta-base" ,
8580 pipeline_tag: " fill-mask" ,
You can’t perform that action at this time.
0 commit comments