bitirme-proje / app.py
Bedirhan's picture
Update app.py
37ed8b3
raw
history blame
408 Bytes
import gradio as gr
def greet(name,yarrak,temperature):
salutation="Günaydın" if yarrak else "Iyi Geceler"
fah=(9/5)*temperature + 32
greeting="{} yarrak {}. Bugün hava {} derece".format(salutation, name, temperature)
return greeting, round(fah,2)
iface=gr.Interface(
fn=greet,
inputs=["text","checkbox",gr.inputs.Slider(0,100)],
outputs=["text","number"],
)
iface.launch()