Spaces:
Runtime error
Runtime error
File size: 408 Bytes
d7ac483 37ed8b3 d7ac483 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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() |