<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Smile Tech</title>
    <description>The latest articles on DEV Community by Smile Tech (@smile_tech_0fdc470dd15463).</description>
    <link>https://dev.to/smile_tech_0fdc470dd15463</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3791815%2Fb653ab87-1603-4f71-9b85-774365a5c754.png</url>
      <title>DEV Community: Smile Tech</title>
      <link>https://dev.to/smile_tech_0fdc470dd15463</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/smile_tech_0fdc470dd15463"/>
    <language>en</language>
    <item>
      <title>GenLayer AI Tutorial: Python Sentiment Analysis</title>
      <dc:creator>Smile Tech</dc:creator>
      <pubDate>Wed, 25 Feb 2026 14:06:32 +0000</pubDate>
      <link>https://dev.to/smile_tech_0fdc470dd15463/genlayer-ai-tutorial-python-sentiment-analysis-a62</link>
      <guid>https://dev.to/smile_tech_0fdc470dd15463/genlayer-ai-tutorial-python-sentiment-analysis-a62</guid>
      <description>&lt;h1&gt;
  
  
  🚀 Build an AI Sentiment Analyzer on GenLayer
&lt;/h1&gt;

&lt;p&gt;GenLayer allows smart contracts to use LLMs through decentralized consensus. Here is how to build a Sentiment Analyzer.&lt;/p&gt;

&lt;h2&gt;
  
  
  🐍 The Contract
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
# { "Depends": "py-genlayer:test" }
from genlayer import *

@gl.contract
class SentimentAnalyzer:
    last_analysis: str
    def __init__(self):
        self.last_analysis = "Empty"

    @gl.public.write
    def analyze(self, text: str) -&amp;gt; str:
        self.last_analysis = gl.call_llm(f"Sentiment of: {text}")
        return self.last_analysis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>genlayer</category>
      <category>blockchain</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
