Using Class TOllama + Gemma3 vision !!!

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 42716
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 93 times
Been thanked: 103 times
Contact:

Using Class TOllama + Gemma3 vision !!!

Post by Antonio Linares »

ollama pull gemma3

Code: Select all | Expand

#include "FiveWin.ch"

REQUEST HB_CODEPAGE_ESWIN

function Main()

    local oChat := TOLlama():New( "gemma3" )

    fw_SetUnicode( .F. )
    hb_SetCodePage( "ESWIN" )

    oChat:SendImage( "c:/fwh/bitmaps/pngs/equation.png", "resuelve x" )
    fw_memoEdit( hb_Utf8ToStr( oChat:GetValue() ) )

    oChat:End()

return nil    
Aquí está la solución para encontrar x:

**Concepto:**

Este es un triángulo rectángulo, donde el lado de 6 cm y el lado de 8 cm son los catetos y x es la hipotenusa. Podemos usar el teorema de Pitágoras para encontrar la hipotenusa:

a² + b² = c²

donde a y b son los catetos y c es la hipotenusa.

**Solución:**

1. Sustituye los valores en la ecuación:
6² + 8² = x²

2. Calcula los cuadrados:
36 + 64 = x²

3. Suma los números:
100 = x²

4. Toma la raíz cuadrada de ambos lados:
x = ?100
x = 10

**Por lo tanto, x = 10 cm**
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42716
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 93 times
Been thanked: 103 times
Contact:

Re: Using Class TOllama + Gemma3 vision !!!

Post by Antonio Linares »

OCR + AI 100% FREE using it with local Ollama :D :!:
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply