Bedirhan commited on
Commit
37ed8b3
1 Parent(s): d7ac483

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -1,7 +1,16 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
 
 
 
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ def greet(name,yarrak,temperature):
4
+ salutation="Günaydın" if yarrak else "Iyi Geceler"
5
+ fah=(9/5)*temperature + 32
6
+ greeting="{} yarrak {}. Bugün hava {} derece".format(salutation, name, temperature)
7
+ return greeting, round(fah,2)
8
+
9
+
10
+ iface=gr.Interface(
11
+ fn=greet,
12
+ inputs=["text","checkbox",gr.inputs.Slider(0,100)],
13
+ outputs=["text","number"],
14
+ )
15
 
 
16
  iface.launch()