add sentiment analysis links

This commit is contained in:
2025-11-25 20:55:26 +01:00
parent 5713c36be8
commit 277896394d
3 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
import marimo
__generated_with = "0.18.0"
app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
import requests
import ollama
from ollama import Client
QUMO_OLLAMA_URL = 'http://ollama-vb.tail44fa00.ts.net:11434'
return Client, QUMO_OLLAMA_URL, mo, requests
@app.cell
def _(Client, QUMO_OLLAMA_URL, requests):
try:
requests.get(QUMO_OLLAMA_URL, timeout=5)
client = Client(
host=QUMO_OLLAMA_URL
)
except requests.ConnectionError:
print(f"Failed to reach {QUMO_OLLAMA_URL}. Check that the VM is running and Tailscale is up")
return
@app.cell(hide_code=True)
def _(mo):
mo.md(r"""
# Examples:
[Quick and Easy: Sentiment Analysis with LLM](https://medium.com/@beam_villa/quick-and-easy-sentiment-analysis-with-llm-c61c562d059c)
""")
return
if __name__ == "__main__":
app.run()