Spaces:
				
			
			
	
			
			
		Build error
		
	
	
	
			
			
	
	
	
	
		
		
		Build error
		
	File size: 414 Bytes
			
			| 38ed60f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import gradio as gr
def greet(name, is_morning, temperature):
  salutation = "Good morning" if is_morning else "Good evening"
  greeting = "%s %s. It is %s degrees today" % (
    salutation, name, temperature)
  celsius = (temperature - 32) * 5 / 9
  return greeting, round(celsius, 2)
iface = gr.Interface(
  fn=greet,
  inputs=["text",   "checkbox",   gr.Slider(0, 200)],
  outputs=["text"]
  )
iface.launch() | 
