I want to create a little calculator app in python. Can you make a little GUI that has inputs for two numbers, an output, and a "go" button?
system
main paythan main thodaa calculator ap bananaa chahta hum.kya aap thodaa GUI bana sakate hai jisamen do numberon, ek output or "go" batan ke liye input hai?
user
zarur!yahan ek paythan script he jo aapke vinirdeshon ke anusaar ek GUI windo banaati he.

Sg ke rup main pysimplegui aayaat karen

sg.theme ('darkgre 2')

# windo leout
leout = [
    ]
    [sg.button ('gananaa')],
    [Sg.text ('parinaam:'), sg.output (kunjee = '-output-')]]
]

# windo inishilise karen
windo = sg.window ('calculator', leout)

# mukhya gheraa
jabaki sach:
    ghatana, maan = window.read ()
    yadi ghatana == sg.window_closed:
        todna
    yadi ghatana == 'gananaa':
        koshish karnaa:
            num1 = int (maan ['-input1-'])
            num2 = int (maan ['-input 2-'])
            parinaam = num1 + num2
            windo ['-output-']. apadet (parinaam)
        ValueError ko chhodkar:
            windo ['-output-']. adhyatan ('amaanya input')

dhyaan den ki yah code paythan modul Pysimplegui kaa upyog karata he jise aapako PIP yaa apni pasand ke package manager kaa upyog karke install karne kii aavashyaktaa ho sakati he.
assistant
<|system|>
</s>
<|user|>
main paythan main thodaa calculator ap bananaa chahta hum.kya aap thodaa GUI bana sakate hai jisamen do numberon, ek output or "go" batan ke liye input hai?</s>
<|assistant|>
zarur!yahan ek paythan script he jo aapke vinirdeshon ke anusaar ek GUI windo banaati he.

Sg ke rup main pysimplegui aayaat karen

sg.theme ('darkgre 2')

# windo leout
leout = [
    ]
    [sg.button ('gananaa')],
    [Sg.text ('parinaam:'), sg.output (kunjee = '-output-')]]
]

# windo inishilise karen
windo = sg.window ('calculator', leout)

# mukhya gheraa
jabaki sach:
    ghatana, maan = window.read ()
    yadi ghatana == sg.window_closed:
        todna
    yadi ghatana == 'gananaa':
        koshish karnaa:
            num1 = int (maan ['-input1-'])
            num2 = int (maan ['-input 2-'])
            parinaam = num1 + num2
            windo ['-output-']. apadet (parinaam)
        ValueError ko chhodkar:
            windo ['-output-']. adhyatan ('amaanya input')

dhyaan den ki yah code paythan modul Pysimplegui kaa upyog karata he jise aapako PIP yaa apni pasand ke package manager kaa upyog karke install karne kii aavashyaktaa ho sakati he.</s>
