Shahadbal commited on
Commit
4f325b5
1 Parent(s): 0229dab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  #°F = °C * 9/5 + 32
3
  def greet(input):
4
  result = float(input)*(9/5)+32
5
- return "The Celsius degree",input , "is in Fahrenheit", result , "degree"
6
 
7
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
8
  demo.launch()
 
2
  #°F = °C * 9/5 + 32
3
  def greet(input):
4
  result = float(input)*(9/5)+32
5
+ return f"The Celsius degree {input} is in Fahrenheit {result} degree"
6
 
7
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="Enter Celsius degree and convert it to Fahrenheit.")
8
  demo.launch()