<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>touch-sp</author_name>
  <author_url>https://blog.hatena.ne.jp/touch-sp/</author_url>
  <blog_title>パソコン関連もろもろ</blog_title>
  <blog_url>https://touch-sp.hatenablog.com/</blog_url>
  <categories>
    <anon>Gradio</anon>
  </categories>
  <description>Pythonスクリプトできるだけシンプルに書いてみました。 import gradio as gr from ollama import Client # Ollamaクライアント初期化（ローカルサーバーに接続） client = Client(host='http://localhost:11434') def translate_english_to_japanese(text): prompt = [ { &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;あなたは英語から日本語への翻訳に特化した優秀なAIアシスタントです。回答は翻訳文にとどめ、日本語に翻訳するだけです。&quot;, }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftouch-sp.hatenablog.com%2Fentry%2F2025%2F05%2F04%2F083821&quot; title=&quot;Gradio と Ollama で翻訳アプリを作る - パソコン関連もろもろ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/touch-sp/20250504/20250504083556.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-05-04 08:38:21</published>
  <title>Gradio と Ollama で翻訳アプリを作る</title>
  <type>rich</type>
  <url>https://touch-sp.hatenablog.com/entry/2025/05/04/083821</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
