Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,16 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def greet(name):
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|