Skip to content

Commit 22ba818

Browse files
authored
Revert "Render newlines in code outputs (#484)" (#539)
This reverts commit 03dcb2a.
1 parent 0f0585e commit 22ba818

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
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}

widgets/src/routes/index.svelte

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@
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",

0 commit comments

Comments
 (0)