Spaces:
Runtime error
Runtime error
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() |