copy edits
Browse files
client/src/routes/index.svelte
CHANGED
@@ -34,23 +34,49 @@
|
|
34 |
<p class="py-3 max-w-prose leading-normal">
|
35 |
This project is an experiment running sentiment analysis on the current
|
36 |
<a
|
37 |
-
class="text-blue-500 underline"
|
38 |
target="_blank"
|
39 |
href="https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml">New York Times</a
|
40 |
>
|
41 |
-
homepage
|
42 |
? 'good or bad news first'
|
43 |
-
: 'bad or good news first'}. It's built with a
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</p>
|
46 |
-
<
|
|
|
|
|
|
|
|
|
47 |
<button
|
48 |
class="{positiveOrder
|
49 |
? 'bg-emerald-600'
|
50 |
: 'bg-red-600'} hover:bg-zinc-300 text-white font-bold py-2 px-4 rounded"
|
51 |
on:click={toggleOrder}
|
52 |
>
|
53 |
-
{!positiveOrder ? 'Sorted by negative' : 'Sorted by positive'}
|
54 |
</button>
|
55 |
{#await fecthPredictions()}
|
56 |
<div class="py-4">
|
|
|
34 |
<p class="py-3 max-w-prose leading-normal">
|
35 |
This project is an experiment running sentiment analysis on the current
|
36 |
<a
|
37 |
+
class="text-blue-500 underline hover:no-underline"
|
38 |
target="_blank"
|
39 |
href="https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml">New York Times</a
|
40 |
>
|
41 |
+
homepage headlines RSS. It also provides you with a sorting button to choose to see {positiveOrder
|
42 |
? 'good or bad news first'
|
43 |
+
: 'bad or good news first'}. It's built with a
|
44 |
+
<a
|
45 |
+
class="text-blue-500 underline hover:no-underline"
|
46 |
+
target="_blank"
|
47 |
+
href="https://huggingface.co/spaces/radames/NYTimes-homepage-rearranged/tree/main/client"
|
48 |
+
>
|
49 |
+
custom SvelveKit front-end
|
50 |
+
</a>
|
51 |
+
, served by a
|
52 |
+
<a
|
53 |
+
class="text-blue-500 underline hover:no-underline"
|
54 |
+
target="_blank"
|
55 |
+
href="https://huggingface.co/spaces/radames/NYTimes-homepage-rearranged/blob/main/app.py"
|
56 |
+
>
|
57 |
+
Flask application
|
58 |
+
</a>
|
59 |
+
and using
|
60 |
+
<a
|
61 |
+
class="text-blue-500 underline hover:no-underline"
|
62 |
+
target="_blank"
|
63 |
+
href="https://huggingface.co/siebert/sentiment-roberta-large-english"
|
64 |
+
>
|
65 |
+
transformers pipeline for the sentiment analysis.
|
66 |
+
</a>
|
67 |
</p>
|
68 |
+
<details>
|
69 |
+
<summary class="cursor-pointer"> Details </summary>
|
70 |
+
<p></p>
|
71 |
+
</details>
|
72 |
+
<div class="py-4" />
|
73 |
<button
|
74 |
class="{positiveOrder
|
75 |
? 'bg-emerald-600'
|
76 |
: 'bg-red-600'} hover:bg-zinc-300 text-white font-bold py-2 px-4 rounded"
|
77 |
on:click={toggleOrder}
|
78 |
>
|
79 |
+
{!positiveOrder ? 'Sorted by negative scores' : 'Sorted by positive scores'}
|
80 |
</button>
|
81 |
{#await fecthPredictions()}
|
82 |
<div class="py-4">
|