Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| # Toplama fonksiyonu | |
| def add_numbers(a, b): | |
| return a + b | |
| # Gradio Arayüzü | |
| iface = gr.Interface( | |
| fn=add_numbers, | |
| inputs=[gr.Number(label="Sayı 1"), gr.Number(label="Sayı 2")], | |
| outputs=gr.Number(label="Toplam"), | |
| title="Toplama Modeli", | |
| description="İki sayıyı toplayan basit bir model." | |
| ) | |
| iface.launch() | |